<?php
class Gender extends PBEnum
{
  const MALE  = 0;
  const FEMALE  = 1;
  const OTHER  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "MALE",
			1 => "FEMALE",
			3 => "OTHER");
   }
}
class User2UserActionType extends PBEnum
{
  const FOLLOW  = 1;
  const UNFOLLOW  = 2;
  const MENTION  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "FOLLOW",
			2 => "UNFOLLOW",
			3 => "MENTION");
   }
}
class User2ContentActionType extends PBEnum
{
  const CREATE  = 1;
  const REPLACE  = 2;
  const UPDATE  = 3;
  const DELETE  = 4;
  const VIEW  = 5;
  const LIKE  = 6;
  const UNLIKE  = 17;
  const SHARE  = 7;
  const POST_SHARE  = 11;
  const COMMENT  = 8;
  const RATE  = 9;
  const JOIN  = 10;
  const SUBSCRIBE  = 12;
  const UNSUBSCRIBE  = 13;
  const STREAM  = 14;
  const UNSTREAM  = 15;
  const THANK  = 16;
  const UNTHANK  = 18;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "CREATE",
			2 => "REPLACE",
			3 => "UPDATE",
			4 => "DELETE",
			5 => "VIEW",
			6 => "LIKE",
			17 => "UNLIKE",
			7 => "SHARE",
			11 => "POST_SHARE",
			8 => "COMMENT",
			9 => "RATE",
			10 => "JOIN",
			12 => "SUBSCRIBE",
			13 => "UNSUBSCRIBE",
			14 => "STREAM",
			15 => "UNSTREAM",
			16 => "THANK",
			18 => "UNTHANK");
   }
}
class UserActivityType extends PBEnum
{
  const USER_FOLLOW  = 0;
  const FOLLOW_USER  = 7;
  const CONTENT_LIKE  = 1;
  const CONTENT_SHARE  = 2;
  const CONTENT_COMMENT  = 3;
  const CONTENT_CREATE  = 4;
  const CONTENT_UPDATE  = 5;
  const EVENT_JOIN  = 6;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "USER_FOLLOW",
			7 => "FOLLOW_USER",
			1 => "CONTENT_LIKE",
			2 => "CONTENT_SHARE",
			3 => "CONTENT_COMMENT",
			4 => "CONTENT_CREATE",
			5 => "CONTENT_UPDATE",
			6 => "EVENT_JOIN");
   }
}
class ItemType extends PBEnum
{
  const TAG  = 1;
  const ALBUM  = 2;
  const COMICSTRIP  = 3;
  const COMICSTRIP_CHAPTER  = 17;
  const NOVEL  = 20;
  const NOVEL_CHAPTER  = 21;
  const PHOTO  = 18;
  const GAG  = 4;
  const MOVIE  = 5;
  const MOVIE_EPISODE  = 19;
  const TVSHOW  = 6;
  const LIVESHOW  = 7;
  const RAGECOMICALBUM  = 8;
  const RAGECOMICPHOTO  = 9;
  const VIDEO  = 10;
  const MOVIEPHOTO  = 12;
  const PUBLICPEOPLE  = 11;
  const PERSONAL_EVENT  = 16;
  const CINEMA  = 13;
  const MOVIESHOWTIME  = 14;
  const USERPOST  = 15;
  const SHARE_TOKEN  = 22;
  const ARTICLE  = 23;
  const PUBLIC_POST  = 24;
  const BANNER  = 25;
  const FAQ_TOPIC  = 26;
  const FAQ  = 27;
  const NEWS  = 28;
  const GOLD_PRICE  = 29;
  const FOREIGN_MONEY_PRICE  = 30;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "TAG",
			2 => "ALBUM",
			3 => "COMICSTRIP",
			17 => "COMICSTRIP_CHAPTER",
			20 => "NOVEL",
			21 => "NOVEL_CHAPTER",
			18 => "PHOTO",
			4 => "GAG",
			5 => "MOVIE",
			19 => "MOVIE_EPISODE",
			6 => "TVSHOW",
			7 => "LIVESHOW",
			8 => "RAGECOMICALBUM",
			9 => "RAGECOMICPHOTO",
			10 => "VIDEO",
			12 => "MOVIEPHOTO",
			11 => "PUBLICPEOPLE",
			16 => "PERSONAL_EVENT",
			13 => "CINEMA",
			14 => "MOVIESHOWTIME",
			15 => "USERPOST",
			22 => "SHARE_TOKEN",
			23 => "ARTICLE",
			24 => "PUBLIC_POST",
			25 => "BANNER",
			26 => "FAQ_TOPIC",
			27 => "FAQ",
			28 => "NEWS",
			29 => "GOLD_PRICE",
			30 => "FOREIGN_MONEY_PRICE");
   }
}
class GameAction extends PBEnum
{
  const LOGIN  = 0;
  const ACTION_SHARE  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "LOGIN",
			1 => "ACTION_SHARE");
   }
}
class MiniGameType extends PBEnum
{
  const LUCKY_NUMBER  = 0;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "LUCKY_NUMBER");
   }
}
class ZipAlgorithm extends PBEnum
{
  const SNAPPY  = 0;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SNAPPY");
   }
}
class OpenGraphShareAction extends PBEnum
{
  const OG_WATCH  = 0;
  const OG_READ  = 1;
  const OG_LISTEN  = 2;
  const OG_LIKE  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "OG_WATCH",
			1 => "OG_READ",
			2 => "OG_LISTEN",
			3 => "OG_LIKE");
   }
}
class AddressType extends PBEnum
{
  const GROUP  = 1;
  const PAGE  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "GROUP",
			2 => "PAGE");
   }
}
class ShareType extends PBEnum
{
  const FB_SHARE  = 1;
  const FB_POST  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "FB_SHARE",
			2 => "FB_POST");
   }
}
class Group extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Group"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Group"]["1"] = "group_name";
    self::$fields["Group"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Group"]["2"] = "group_id";
  }
  function group_name()
  {
    return $this->_get_value("1");
  }
  function set_group_name($value)
  {
    return $this->_set_value("1", $value);
  }
  function group_id()
  {
    return $this->_get_value("2");
  }
  function set_group_id($value)
  {
    return $this->_set_value("2", $value);
  }
}
class ProfileLite extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ProfileLite"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ProfileLite"]["1"] = "uid";
    self::$fields["ProfileLite"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ProfileLite"]["2"] = "username";
    self::$fields["ProfileLite"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ProfileLite"]["3"] = "full_name";
    self::$fields["ProfileLite"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ProfileLite"]["5"] = "nickname";
    self::$fields["ProfileLite"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ProfileLite"]["4"] = "profile_picture_uri";
    self::$fields["ProfileLite"]["6"] = "PBBool";
    $this->values["6"] = "";
    self::$fieldNames["ProfileLite"]["6"] = "followed";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function username()
  {
    return $this->_get_value("2");
  }
  function set_username($value)
  {
    return $this->_set_value("2", $value);
  }
  function full_name()
  {
    return $this->_get_value("3");
  }
  function set_full_name($value)
  {
    return $this->_set_value("3", $value);
  }
  function nickname()
  {
    return $this->_get_value("5");
  }
  function set_nickname($value)
  {
    return $this->_set_value("5", $value);
  }
  function profile_picture_uri()
  {
    return $this->_get_value("4");
  }
  function set_profile_picture_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function followed()
  {
    return $this->_get_value("6");
  }
  function set_followed($value)
  {
    return $this->_set_value("6", $value);
  }
}
class AttachedItem_AttachAction extends PBEnum
{
  const SHARE  = 0;
  const REVIEW  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SHARE",
			1 => "REVIEW");
   }
}
class AttachedItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["AttachedItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["AttachedItem"]["1"] = "item_id";
    self::$fields["AttachedItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["AttachedItem"]["2"] = "title";
    self::$fields["AttachedItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["AttachedItem"]["3"] = "thumb_picture_uri";
    self::$fields["AttachedItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["AttachedItem"]["4"] = "description";
    self::$fields["AttachedItem"]["5"] = "PBString";
    $this->values["5"] = array();
    self::$fieldNames["AttachedItem"]["5"] = "tag_label";
    self::$fields["AttachedItem"]["6"] = "ItemType";
    $this->values["6"] = "";
    self::$fieldNames["AttachedItem"]["6"] = "type";
    self::$fields["AttachedItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["AttachedItem"]["7"] = "update_timestamp";
    self::$fields["AttachedItem"]["15"] = "ProfileLite";
    $this->values["15"] = "";
    self::$fieldNames["AttachedItem"]["15"] = "creator";
    self::$fields["AttachedItem"]["8"] = "AttachedItem_AttachAction";
    $this->values["8"] = "";
    self::$fieldNames["AttachedItem"]["8"] = "action";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("5", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("5");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["AttachedItem"]["5"]();
    $v->set_value($value);
    $this->_set_arr_value("5", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("5");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_tag_labels()
  {
    return $this->_get_value("5");
  }
  function type()
  {
    return $this->_get_value("6");
  }
  function set_type($value)
  {
    return $this->_set_value("6", $value);
  }
  function type_string()
  {
    return $this->values["6"]->get_description();
  }
  function update_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function creator()
  {
    return $this->_get_value("15");
  }
  function set_creator($value)
  {
    return $this->_set_value("15", $value);
  }
  function action()
  {
    return $this->_get_value("8");
  }
  function set_action($value)
  {
    return $this->_set_value("8", $value);
  }
  function action_string()
  {
    return $this->values["8"]->get_description();
  }
}
class ItemLite extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemLite"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ItemLite"]["1"] = "item_id";
    self::$fields["ItemLite"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemLite"]["2"] = "title";
    self::$fields["ItemLite"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ItemLite"]["3"] = "thumb_picture_uri";
    self::$fields["ItemLite"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ItemLite"]["4"] = "description";
    self::$fields["ItemLite"]["5"] = "PBString";
    $this->values["5"] = array();
    self::$fieldNames["ItemLite"]["5"] = "tag_label";
    self::$fields["ItemLite"]["6"] = "ItemType";
    $this->values["6"] = "";
    self::$fieldNames["ItemLite"]["6"] = "type";
    self::$fields["ItemLite"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ItemLite"]["7"] = "update_timestamp";
    self::$fields["ItemLite"]["16"] = "AttachedItem";
    $this->values["16"] = "";
    self::$fieldNames["ItemLite"]["16"] = "attached_item";
    self::$fields["ItemLite"]["9"] = "PBBool";
    $this->values["9"] = "";
    $this->values["9"] = new PBBool();
    $this->values["9"]->value = false;
    self::$fieldNames["ItemLite"]["9"] = "subscribed";
    self::$fields["ItemLite"]["10"] = "PBInt";
    $this->values["10"] = "";
    $this->values["10"] = new PBInt();
    $this->values["10"]->value = 0;
    self::$fieldNames["ItemLite"]["10"] = "num_likes";
    self::$fields["ItemLite"]["11"] = "PBInt";
    $this->values["11"] = "";
    $this->values["11"] = new PBInt();
    $this->values["11"]->value = 0;
    self::$fieldNames["ItemLite"]["11"] = "num_comments";
    self::$fields["ItemLite"]["12"] = "PBInt";
    $this->values["12"] = "";
    $this->values["12"] = new PBInt();
    $this->values["12"]->value = 0;
    self::$fieldNames["ItemLite"]["12"] = "num_shares";
    self::$fields["ItemLite"]["13"] = "PBInt";
    $this->values["13"] = "";
    $this->values["13"] = new PBInt();
    $this->values["13"]->value = 0;
    self::$fieldNames["ItemLite"]["13"] = "num_views";
    self::$fields["ItemLite"]["14"] = "PBInt";
    $this->values["14"] = "";
    $this->values["14"] = new PBInt();
    $this->values["14"]->value = 0;
    self::$fieldNames["ItemLite"]["14"] = "num_joins";
    self::$fields["ItemLite"]["17"] = "PBInt";
    $this->values["17"] = "";
    $this->values["17"] = new PBInt();
    $this->values["17"]->value = 0;
    self::$fieldNames["ItemLite"]["17"] = "num_subitems";
    self::$fields["ItemLite"]["15"] = "ProfileLite";
    $this->values["15"] = "";
    self::$fieldNames["ItemLite"]["15"] = "creator";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("5", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("5");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["ItemLite"]["5"]();
    $v->set_value($value);
    $this->_set_arr_value("5", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("5");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_tag_labels()
  {
    return $this->_get_value("5");
  }
  function type()
  {
    return $this->_get_value("6");
  }
  function set_type($value)
  {
    return $this->_set_value("6", $value);
  }
  function type_string()
  {
    return $this->values["6"]->get_description();
  }
  function update_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function attached_item()
  {
    return $this->_get_value("16");
  }
  function set_attached_item($value)
  {
    return $this->_set_value("16", $value);
  }
  function subscribed()
  {
    return $this->_get_value("9");
  }
  function set_subscribed($value)
  {
    return $this->_set_value("9", $value);
  }
  function num_likes()
  {
    return $this->_get_value("10");
  }
  function set_num_likes($value)
  {
    return $this->_set_value("10", $value);
  }
  function num_comments()
  {
    return $this->_get_value("11");
  }
  function set_num_comments($value)
  {
    return $this->_set_value("11", $value);
  }
  function num_shares()
  {
    return $this->_get_value("12");
  }
  function set_num_shares($value)
  {
    return $this->_set_value("12", $value);
  }
  function num_views()
  {
    return $this->_get_value("13");
  }
  function set_num_views($value)
  {
    return $this->_set_value("13", $value);
  }
  function num_joins()
  {
    return $this->_get_value("14");
  }
  function set_num_joins($value)
  {
    return $this->_set_value("14", $value);
  }
  function num_subitems()
  {
    return $this->_get_value("17");
  }
  function set_num_subitems($value)
  {
    return $this->_set_value("17", $value);
  }
  function creator()
  {
    return $this->_get_value("15");
  }
  function set_creator($value)
  {
    return $this->_set_value("15", $value);
  }
}
class Location extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Location"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Location"]["1"] = "street";
    self::$fields["Location"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Location"]["2"] = "city";
    self::$fields["Location"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["Location"]["3"] = "state";
    self::$fields["Location"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["Location"]["4"] = "country";
    self::$fields["Location"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["Location"]["5"] = "zip";
    self::$fields["Location"]["6"] = "PB32Bit";
    $this->values["6"] = "";
    self::$fieldNames["Location"]["6"] = "latitude";
    self::$fields["Location"]["7"] = "PB32Bit";
    $this->values["7"] = "";
    self::$fieldNames["Location"]["7"] = "longitude";
    self::$fields["Location"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["Location"]["8"] = "name";
  }
  function street()
  {
    return $this->_get_value("1");
  }
  function set_street($value)
  {
    return $this->_set_value("1", $value);
  }
  function city()
  {
    return $this->_get_value("2");
  }
  function set_city($value)
  {
    return $this->_set_value("2", $value);
  }
  function state()
  {
    return $this->_get_value("3");
  }
  function set_state($value)
  {
    return $this->_set_value("3", $value);
  }
  function country()
  {
    return $this->_get_value("4");
  }
  function set_country($value)
  {
    return $this->_set_value("4", $value);
  }
  function zip()
  {
    return $this->_get_value("5");
  }
  function set_zip($value)
  {
    return $this->_set_value("5", $value);
  }
  function latitude()
  {
    return $this->_get_value("6");
  }
  function set_latitude($value)
  {
    return $this->_set_value("6", $value);
  }
  function longitude()
  {
    return $this->_get_value("7");
  }
  function set_longitude($value)
  {
    return $this->_set_value("7", $value);
  }
  function name()
  {
    return $this->_get_value("8");
  }
  function set_name($value)
  {
    return $this->_set_value("8", $value);
  }
}
class Profile extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Profile"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Profile"]["1"] = "uid";
    self::$fields["Profile"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Profile"]["2"] = "full_name";
    self::$fields["Profile"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["Profile"]["3"] = "username";
    self::$fields["Profile"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["Profile"]["4"] = "email";
    self::$fields["Profile"]["26"] = "PBBool";
    $this->values["26"] = "";
    self::$fieldNames["Profile"]["26"] = "email_set";
    self::$fields["Profile"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["Profile"]["5"] = "password";
    self::$fields["Profile"]["18"] = "PBBool";
    $this->values["18"] = "";
    self::$fieldNames["Profile"]["18"] = "password_set";
    self::$fields["Profile"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["Profile"]["6"] = "profile_picture_uri";
    self::$fields["Profile"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["Profile"]["7"] = "birthday_timestamp";
    self::$fields["Profile"]["8"] = "Gender";
    $this->values["8"] = "";
    self::$fieldNames["Profile"]["8"] = "sex";
    self::$fields["Profile"]["9"] = "PBString";
    $this->values["9"] = "";
    self::$fieldNames["Profile"]["9"] = "bio";
    self::$fields["Profile"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["Profile"]["10"] = "mobile";
    self::$fields["Profile"]["11"] = "Location";
    $this->values["11"] = "";
    self::$fieldNames["Profile"]["11"] = "current_address";
    self::$fields["Profile"]["12"] = "Location";
    $this->values["12"] = "";
    self::$fieldNames["Profile"]["12"] = "current_location";
    self::$fields["Profile"]["13"] = "Location";
    $this->values["13"] = "";
    self::$fieldNames["Profile"]["13"] = "home_location";
    self::$fields["Profile"]["14"] = "PBString";
    $this->values["14"] = "";
    self::$fieldNames["Profile"]["14"] = "locale";
    self::$fields["Profile"]["15"] = "PBInt";
    $this->values["15"] = "";
    self::$fieldNames["Profile"]["15"] = "join_timestamp";
    self::$fields["Profile"]["16"] = "PBInt";
    $this->values["16"] = "";
    self::$fieldNames["Profile"]["16"] = "update_timestamp";
    self::$fields["Profile"]["17"] = "PBInt";
    $this->values["17"] = "";
    self::$fieldNames["Profile"]["17"] = "last_login_timestamp";
    self::$fields["Profile"]["19"] = "PBInt";
    $this->values["19"] = "";
    $this->values["19"] = new PBInt();
    $this->values["19"]->value = 0;
    self::$fieldNames["Profile"]["19"] = "num_followers";
    self::$fields["Profile"]["27"] = "ProfileLite";
    $this->values["27"] = array();
    self::$fieldNames["Profile"]["27"] = "followers";
    self::$fields["Profile"]["20"] = "PBInt";
    $this->values["20"] = "";
    $this->values["20"] = new PBInt();
    $this->values["20"]->value = 0;
    self::$fieldNames["Profile"]["20"] = "num_following";
    self::$fields["Profile"]["21"] = "PBInt";
    $this->values["21"] = "";
    $this->values["21"] = new PBInt();
    $this->values["21"]->value = 0;
    self::$fieldNames["Profile"]["21"] = "num_shares";
    self::$fields["Profile"]["22"] = "PBInt";
    $this->values["22"] = "";
    $this->values["22"] = new PBInt();
    $this->values["22"]->value = 0;
    self::$fieldNames["Profile"]["22"] = "num_likes";
    self::$fields["Profile"]["23"] = "PBInt";
    $this->values["23"] = "";
    $this->values["23"] = new PBInt();
    $this->values["23"]->value = 0;
    self::$fieldNames["Profile"]["23"] = "num_recommendations";
    self::$fields["Profile"]["24"] = "PBInt";
    $this->values["24"] = "";
    $this->values["24"] = new PBInt();
    $this->values["24"]->value = 0;
    self::$fieldNames["Profile"]["24"] = "num_posts";
    self::$fields["Profile"]["25"] = "PBInt";
    $this->values["25"] = "";
    $this->values["25"] = new PBInt();
    $this->values["25"]->value = 0;
    self::$fieldNames["Profile"]["25"] = "num_subscriptions";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function full_name()
  {
    return $this->_get_value("2");
  }
  function set_full_name($value)
  {
    return $this->_set_value("2", $value);
  }
  function username()
  {
    return $this->_get_value("3");
  }
  function set_username($value)
  {
    return $this->_set_value("3", $value);
  }
  function email()
  {
    return $this->_get_value("4");
  }
  function set_email($value)
  {
    return $this->_set_value("4", $value);
  }
  function email_set()
  {
    return $this->_get_value("26");
  }
  function set_email_set($value)
  {
    return $this->_set_value("26", $value);
  }
  function password()
  {
    return $this->_get_value("5");
  }
  function set_password($value)
  {
    return $this->_set_value("5", $value);
  }
  function password_set()
  {
    return $this->_get_value("18");
  }
  function set_password_set($value)
  {
    return $this->_set_value("18", $value);
  }
  function profile_picture_uri()
  {
    return $this->_get_value("6");
  }
  function set_profile_picture_uri($value)
  {
    return $this->_set_value("6", $value);
  }
  function birthday_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_birthday_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function sex()
  {
    return $this->_get_value("8");
  }
  function set_sex($value)
  {
    return $this->_set_value("8", $value);
  }
  function sex_string()
  {
    return $this->values["8"]->get_description();
  }
  function bio()
  {
    return $this->_get_value("9");
  }
  function set_bio($value)
  {
    return $this->_set_value("9", $value);
  }
  function mobile()
  {
    return $this->_get_value("10");
  }
  function set_mobile($value)
  {
    return $this->_set_value("10", $value);
  }
  function current_address()
  {
    return $this->_get_value("11");
  }
  function set_current_address($value)
  {
    return $this->_set_value("11", $value);
  }
  function current_location()
  {
    return $this->_get_value("12");
  }
  function set_current_location($value)
  {
    return $this->_set_value("12", $value);
  }
  function home_location()
  {
    return $this->_get_value("13");
  }
  function set_home_location($value)
  {
    return $this->_set_value("13", $value);
  }
  function locale()
  {
    return $this->_get_value("14");
  }
  function set_locale($value)
  {
    return $this->_set_value("14", $value);
  }
  function join_timestamp()
  {
    return $this->_get_value("15");
  }
  function set_join_timestamp($value)
  {
    return $this->_set_value("15", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("16");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("16", $value);
  }
  function last_login_timestamp()
  {
    return $this->_get_value("17");
  }
  function set_last_login_timestamp($value)
  {
    return $this->_set_value("17", $value);
  }
  function num_followers()
  {
    return $this->_get_value("19");
  }
  function set_num_followers($value)
  {
    return $this->_set_value("19", $value);
  }
  function followers($offset)
  {
    return $this->_get_arr_value("27", $offset);
  }
  function add_followers()
  {
    return $this->_add_arr_value("27");
  }
  function set_followers($index, $value)
  {
    $this->_set_arr_value("27", $index, $value);
  }
  function set_all_followerss($values)
  {
    return $this->_set_arr_values("27", $values);
  }
  function remove_last_followers()
  {
    $this->_remove_last_arr_value("27");
  }
  function followerss_size()
  {
    return $this->_get_arr_size("27");
  }
  function get_followerss()
  {
    return $this->_get_value("27");
  }
  function num_following()
  {
    return $this->_get_value("20");
  }
  function set_num_following($value)
  {
    return $this->_set_value("20", $value);
  }
  function num_shares()
  {
    return $this->_get_value("21");
  }
  function set_num_shares($value)
  {
    return $this->_set_value("21", $value);
  }
  function num_likes()
  {
    return $this->_get_value("22");
  }
  function set_num_likes($value)
  {
    return $this->_set_value("22", $value);
  }
  function num_recommendations()
  {
    return $this->_get_value("23");
  }
  function set_num_recommendations($value)
  {
    return $this->_set_value("23", $value);
  }
  function num_posts()
  {
    return $this->_get_value("24");
  }
  function set_num_posts($value)
  {
    return $this->_set_value("24", $value);
  }
  function num_subscriptions()
  {
    return $this->_get_value("25");
  }
  function set_num_subscriptions($value)
  {
    return $this->_set_value("25", $value);
  }
}
class PriceProfile extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PriceProfile"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PriceProfile"]["1"] = "uid";
    self::$fields["PriceProfile"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PriceProfile"]["2"] = "mobile";
    self::$fields["PriceProfile"]["3"] = "PB32Bit";
    $this->values["3"] = "";
    self::$fieldNames["PriceProfile"]["3"] = "price_steps";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function mobile()
  {
    return $this->_get_value("2");
  }
  function set_mobile($value)
  {
    return $this->_set_value("2", $value);
  }
  function price_steps()
  {
    return $this->_get_value("3");
  }
  function set_price_steps($value)
  {
    return $this->_set_value("3", $value);
  }
}
class FacebookProfile extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FacebookProfile"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FacebookProfile"]["1"] = "uid";
    self::$fields["FacebookProfile"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["FacebookProfile"]["5"] = "name";
    self::$fields["FacebookProfile"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["FacebookProfile"]["6"] = "birthday_date";
    self::$fields["FacebookProfile"]["7"] = "Gender";
    $this->values["7"] = "";
    self::$fieldNames["FacebookProfile"]["7"] = "sex";
    self::$fields["FacebookProfile"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["FacebookProfile"]["8"] = "bio";
    self::$fields["FacebookProfile"]["9"] = "PBString";
    $this->values["9"] = "";
    self::$fieldNames["FacebookProfile"]["9"] = "mobile";
    self::$fields["FacebookProfile"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["FacebookProfile"]["10"] = "friend_count";
    self::$fields["FacebookProfile"]["11"] = "Location";
    $this->values["11"] = "";
    self::$fieldNames["FacebookProfile"]["11"] = "current_address";
    self::$fields["FacebookProfile"]["12"] = "Location";
    $this->values["12"] = "";
    self::$fieldNames["FacebookProfile"]["12"] = "current_location";
    self::$fields["FacebookProfile"]["13"] = "Location";
    $this->values["13"] = "";
    self::$fieldNames["FacebookProfile"]["13"] = "home_location";
    self::$fields["FacebookProfile"]["14"] = "PBString";
    $this->values["14"] = array();
    self::$fieldNames["FacebookProfile"]["14"] = "languages";
    self::$fields["FacebookProfile"]["15"] = "PBString";
    $this->values["15"] = "";
    self::$fieldNames["FacebookProfile"]["15"] = "locale";
    self::$fields["FacebookProfile"]["16"] = "PBString";
    $this->values["16"] = "";
    self::$fieldNames["FacebookProfile"]["16"] = "movies";
    self::$fields["FacebookProfile"]["17"] = "PBString";
    $this->values["17"] = "";
    self::$fieldNames["FacebookProfile"]["17"] = "music";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function name()
  {
    return $this->_get_value("5");
  }
  function set_name($value)
  {
    return $this->_set_value("5", $value);
  }
  function birthday_date()
  {
    return $this->_get_value("6");
  }
  function set_birthday_date($value)
  {
    return $this->_set_value("6", $value);
  }
  function sex()
  {
    return $this->_get_value("7");
  }
  function set_sex($value)
  {
    return $this->_set_value("7", $value);
  }
  function sex_string()
  {
    return $this->values["7"]->get_description();
  }
  function bio()
  {
    return $this->_get_value("8");
  }
  function set_bio($value)
  {
    return $this->_set_value("8", $value);
  }
  function mobile()
  {
    return $this->_get_value("9");
  }
  function set_mobile($value)
  {
    return $this->_set_value("9", $value);
  }
  function friend_count()
  {
    return $this->_get_value("10");
  }
  function set_friend_count($value)
  {
    return $this->_set_value("10", $value);
  }
  function current_address()
  {
    return $this->_get_value("11");
  }
  function set_current_address($value)
  {
    return $this->_set_value("11", $value);
  }
  function current_location()
  {
    return $this->_get_value("12");
  }
  function set_current_location($value)
  {
    return $this->_set_value("12", $value);
  }
  function home_location()
  {
    return $this->_get_value("13");
  }
  function set_home_location($value)
  {
    return $this->_set_value("13", $value);
  }
  function languages($offset)
  {
    $v = $this->_get_arr_value("14", $offset);
    return $v->get_value();
  }
  function append_languages($value)
  {
    $v = $this->_add_arr_value("14");
    $v->set_value($value);
  }
  function set_languages($index, $value)
  {
    $v = new self::$fields["FacebookProfile"]["14"]();
    $v->set_value($value);
    $this->_set_arr_value("14", $index, $v);
  }
  function remove_last_languages()
  {
    $this->_remove_last_arr_value("14");
  }
  function languagess_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_languagess()
  {
    return $this->_get_value("14");
  }
  function locale()
  {
    return $this->_get_value("15");
  }
  function set_locale($value)
  {
    return $this->_set_value("15", $value);
  }
  function movies()
  {
    return $this->_get_value("16");
  }
  function set_movies($value)
  {
    return $this->_set_value("16", $value);
  }
  function music()
  {
    return $this->_get_value("17");
  }
  function set_music($value)
  {
    return $this->_set_value("17", $value);
  }
}
class FollowerProfile extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FollowerProfile"]["1"] = "Profile";
    $this->values["1"] = "";
    self::$fieldNames["FollowerProfile"]["1"] = "profile";
    self::$fields["FollowerProfile"]["2"] = "PBBool";
    $this->values["2"] = "";
    self::$fieldNames["FollowerProfile"]["2"] = "also_followed";
  }
  function profile()
  {
    return $this->_get_value("1");
  }
  function set_profile($value)
  {
    return $this->_set_value("1", $value);
  }
  function also_followed()
  {
    return $this->_get_value("2");
  }
  function set_also_followed($value)
  {
    return $this->_set_value("2", $value);
  }
}
class MentionMessage extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MentionMessage"]["1"] = "PBInt";
    $this->values["1"] = "";
    self::$fieldNames["MentionMessage"]["1"] = "begin";
    self::$fields["MentionMessage"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["MentionMessage"]["2"] = "end";
    self::$fields["MentionMessage"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["MentionMessage"]["3"] = "username";
    self::$fields["MentionMessage"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["MentionMessage"]["4"] = "full_name";
  }
  function begin()
  {
    return $this->_get_value("1");
  }
  function set_begin($value)
  {
    return $this->_set_value("1", $value);
  }
  function end()
  {
    return $this->_get_value("2");
  }
  function set_end($value)
  {
    return $this->_set_value("2", $value);
  }
  function username()
  {
    return $this->_get_value("3");
  }
  function set_username($value)
  {
    return $this->_set_value("3", $value);
  }
  function full_name()
  {
    return $this->_get_value("4");
  }
  function set_full_name($value)
  {
    return $this->_set_value("4", $value);
  }
}
class TextMessage extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TextMessage"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["TextMessage"]["1"] = "msg";
    self::$fields["TextMessage"]["2"] = "MentionMessage";
    $this->values["2"] = array();
    self::$fieldNames["TextMessage"]["2"] = "mention";
  }
  function msg()
  {
    return $this->_get_value("1");
  }
  function set_msg($value)
  {
    return $this->_set_value("1", $value);
  }
  function mention($offset)
  {
    return $this->_get_arr_value("2", $offset);
  }
  function add_mention()
  {
    return $this->_add_arr_value("2");
  }
  function set_mention($index, $value)
  {
    $this->_set_arr_value("2", $index, $value);
  }
  function set_all_mentions($values)
  {
    return $this->_set_arr_values("2", $values);
  }
  function remove_last_mention()
  {
    $this->_remove_last_arr_value("2");
  }
  function mentions_size()
  {
    return $this->_get_arr_size("2");
  }
  function get_mentions()
  {
    return $this->_get_value("2");
  }
}
class TagItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TagItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["TagItem"]["1"] = "item_id";
    self::$fields["TagItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["TagItem"]["2"] = "label";
    self::$fields["TagItem"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["TagItem"]["6"] = "create_timestamp";
    self::$fields["TagItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["TagItem"]["7"] = "update_timestamp";
    self::$fields["TagItem"]["8"] = "PBBool";
    $this->values["8"] = "";
    self::$fieldNames["TagItem"]["8"] = "hidden";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function label()
  {
    return $this->_get_value("2");
  }
  function set_label($value)
  {
    return $this->_set_value("2", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function hidden()
  {
    return $this->_get_value("8");
  }
  function set_hidden($value)
  {
    return $this->_set_value("8", $value);
  }
}
class PhotoItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PhotoItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PhotoItem"]["1"] = "item_id";
    self::$fields["PhotoItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PhotoItem"]["2"] = "title";
    self::$fields["PhotoItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["PhotoItem"]["3"] = "thumb_picture_uri";
    self::$fields["PhotoItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["PhotoItem"]["4"] = "description";
    self::$fields["PhotoItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["PhotoItem"]["5"] = "seo";
    self::$fields["PhotoItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["PhotoItem"]["6"] = "tag_label";
    self::$fields["PhotoItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["PhotoItem"]["7"] = "create_timestamp";
    self::$fields["PhotoItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["PhotoItem"]["8"] = "update_timestamp";
    self::$fields["PhotoItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["PhotoItem"]["9"] = "hidden";
    self::$fields["PhotoItem"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["PhotoItem"]["10"] = "photo_uri";
    self::$fields["PhotoItem"]["11"] = "PBString";
    $this->values["11"] = "";
    self::$fieldNames["PhotoItem"]["11"] = "photo_source";
    self::$fields["PhotoItem"]["12"] = "PBString";
    $this->values["12"] = "";
    self::$fieldNames["PhotoItem"]["12"] = "container_id";
    self::$fields["PhotoItem"]["13"] = "PBInt";
    $this->values["13"] = "";
    self::$fieldNames["PhotoItem"]["13"] = "photo_index";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["PhotoItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function photo_uri()
  {
    return $this->_get_value("10");
  }
  function set_photo_uri($value)
  {
    return $this->_set_value("10", $value);
  }
  function photo_source()
  {
    return $this->_get_value("11");
  }
  function set_photo_source($value)
  {
    return $this->_set_value("11", $value);
  }
  function container_id()
  {
    return $this->_get_value("12");
  }
  function set_container_id($value)
  {
    return $this->_set_value("12", $value);
  }
  function photo_index()
  {
    return $this->_get_value("13");
  }
  function set_photo_index($value)
  {
    return $this->_set_value("13", $value);
  }
}
class ComicStripItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ComicStripItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ComicStripItem"]["1"] = "item_id";
    self::$fields["ComicStripItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ComicStripItem"]["2"] = "title";
    self::$fields["ComicStripItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ComicStripItem"]["3"] = "thumb_picture_uri";
    self::$fields["ComicStripItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ComicStripItem"]["4"] = "description";
    self::$fields["ComicStripItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ComicStripItem"]["5"] = "seo";
    self::$fields["ComicStripItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["ComicStripItem"]["6"] = "tag_label";
    self::$fields["ComicStripItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ComicStripItem"]["7"] = "create_timestamp";
    self::$fields["ComicStripItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["ComicStripItem"]["8"] = "update_timestamp";
    self::$fields["ComicStripItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["ComicStripItem"]["9"] = "hidden";
    self::$fields["ComicStripItem"]["10"] = "PBInt";
    $this->values["10"] = "";
    self::$fieldNames["ComicStripItem"]["10"] = "num_of_chapters";
    self::$fields["ComicStripItem"]["11"] = "ItemLite";
    $this->values["11"] = array();
    self::$fieldNames["ComicStripItem"]["11"] = "chapters";
    self::$fields["ComicStripItem"]["12"] = "PBBool";
    $this->values["12"] = "";
    self::$fieldNames["ComicStripItem"]["12"] = "adult_only";
    self::$fields["ComicStripItem"]["13"] = "PBString";
    $this->values["13"] = "";
    self::$fieldNames["ComicStripItem"]["13"] = "source";
    self::$fields["ComicStripItem"]["14"] = "PBString";
    $this->values["14"] = array();
    self::$fieldNames["ComicStripItem"]["14"] = "author";
    self::$fields["ComicStripItem"]["15"] = "PBString";
    $this->values["15"] = array();
    self::$fieldNames["ComicStripItem"]["15"] = "genre";
    self::$fields["ComicStripItem"]["16"] = "PBInt";
    $this->values["16"] = "";
    self::$fieldNames["ComicStripItem"]["16"] = "release_timestamp";
    self::$fields["ComicStripItem"]["17"] = "PBString";
    $this->values["17"] = "";
    self::$fieldNames["ComicStripItem"]["17"] = "status";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["ComicStripItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function num_of_chapters()
  {
    return $this->_get_value("10");
  }
  function set_num_of_chapters($value)
  {
    return $this->_set_value("10", $value);
  }
  function chapters($offset)
  {
    return $this->_get_arr_value("11", $offset);
  }
  function add_chapters()
  {
    return $this->_add_arr_value("11");
  }
  function set_chapters($index, $value)
  {
    $this->_set_arr_value("11", $index, $value);
  }
  function set_all_chapterss($values)
  {
    return $this->_set_arr_values("11", $values);
  }
  function remove_last_chapters()
  {
    $this->_remove_last_arr_value("11");
  }
  function chapterss_size()
  {
    return $this->_get_arr_size("11");
  }
  function get_chapterss()
  {
    return $this->_get_value("11");
  }
  function adult_only()
  {
    return $this->_get_value("12");
  }
  function set_adult_only($value)
  {
    return $this->_set_value("12", $value);
  }
  function source()
  {
    return $this->_get_value("13");
  }
  function set_source($value)
  {
    return $this->_set_value("13", $value);
  }
  function author($offset)
  {
    $v = $this->_get_arr_value("14", $offset);
    return $v->get_value();
  }
  function append_author($value)
  {
    $v = $this->_add_arr_value("14");
    $v->set_value($value);
  }
  function set_author($index, $value)
  {
    $v = new self::$fields["ComicStripItem"]["14"]();
    $v->set_value($value);
    $this->_set_arr_value("14", $index, $v);
  }
  function remove_last_author()
  {
    $this->_remove_last_arr_value("14");
  }
  function authors_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_authors()
  {
    return $this->_get_value("14");
  }
  function genre($offset)
  {
    $v = $this->_get_arr_value("15", $offset);
    return $v->get_value();
  }
  function append_genre($value)
  {
    $v = $this->_add_arr_value("15");
    $v->set_value($value);
  }
  function set_genre($index, $value)
  {
    $v = new self::$fields["ComicStripItem"]["15"]();
    $v->set_value($value);
    $this->_set_arr_value("15", $index, $v);
  }
  function remove_last_genre()
  {
    $this->_remove_last_arr_value("15");
  }
  function genres_size()
  {
    return $this->_get_arr_size("15");
  }
  function get_genres()
  {
    return $this->_get_value("15");
  }
  function release_timestamp()
  {
    return $this->_get_value("16");
  }
  function set_release_timestamp($value)
  {
    return $this->_set_value("16", $value);
  }
  function status()
  {
    return $this->_get_value("17");
  }
  function set_status($value)
  {
    return $this->_set_value("17", $value);
  }
}
class ComicStripChapterItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ComicStripChapterItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ComicStripChapterItem"]["1"] = "item_id";
    self::$fields["ComicStripChapterItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ComicStripChapterItem"]["2"] = "title";
    self::$fields["ComicStripChapterItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ComicStripChapterItem"]["3"] = "thumb_picture_uri";
    self::$fields["ComicStripChapterItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ComicStripChapterItem"]["4"] = "description";
    self::$fields["ComicStripChapterItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ComicStripChapterItem"]["5"] = "seo";
    self::$fields["ComicStripChapterItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["ComicStripChapterItem"]["6"] = "tag_label";
    self::$fields["ComicStripChapterItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ComicStripChapterItem"]["7"] = "create_timestamp";
    self::$fields["ComicStripChapterItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["ComicStripChapterItem"]["8"] = "update_timestamp";
    self::$fields["ComicStripChapterItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["ComicStripChapterItem"]["9"] = "hidden";
    self::$fields["ComicStripChapterItem"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["ComicStripChapterItem"]["10"] = "comicstrip_id";
    self::$fields["ComicStripChapterItem"]["11"] = "PBInt";
    $this->values["11"] = "";
    self::$fieldNames["ComicStripChapterItem"]["11"] = "chapter_index";
    self::$fields["ComicStripChapterItem"]["12"] = "PhotoItem";
    $this->values["12"] = array();
    self::$fieldNames["ComicStripChapterItem"]["12"] = "photo_item";
    self::$fields["ComicStripChapterItem"]["13"] = "PBString";
    $this->values["13"] = "";
    self::$fieldNames["ComicStripChapterItem"]["13"] = "bookmarked_photo_id";
    self::$fields["ComicStripChapterItem"]["15"] = "ItemLite";
    $this->values["15"] = "";
    self::$fieldNames["ComicStripChapterItem"]["15"] = "comic";
    self::$fields["ComicStripChapterItem"]["14"] = "ItemLite";
    $this->values["14"] = array();
    self::$fieldNames["ComicStripChapterItem"]["14"] = "chapters";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["ComicStripChapterItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function comicstrip_id()
  {
    return $this->_get_value("10");
  }
  function set_comicstrip_id($value)
  {
    return $this->_set_value("10", $value);
  }
  function chapter_index()
  {
    return $this->_get_value("11");
  }
  function set_chapter_index($value)
  {
    return $this->_set_value("11", $value);
  }
  function photo_item($offset)
  {
    return $this->_get_arr_value("12", $offset);
  }
  function add_photo_item()
  {
    return $this->_add_arr_value("12");
  }
  function set_photo_item($index, $value)
  {
    $this->_set_arr_value("12", $index, $value);
  }
  function set_all_photo_items($values)
  {
    return $this->_set_arr_values("12", $values);
  }
  function remove_last_photo_item()
  {
    $this->_remove_last_arr_value("12");
  }
  function photo_items_size()
  {
    return $this->_get_arr_size("12");
  }
  function get_photo_items()
  {
    return $this->_get_value("12");
  }
  function bookmarked_photo_id()
  {
    return $this->_get_value("13");
  }
  function set_bookmarked_photo_id($value)
  {
    return $this->_set_value("13", $value);
  }
  function comic()
  {
    return $this->_get_value("15");
  }
  function set_comic($value)
  {
    return $this->_set_value("15", $value);
  }
  function chapters($offset)
  {
    return $this->_get_arr_value("14", $offset);
  }
  function add_chapters()
  {
    return $this->_add_arr_value("14");
  }
  function set_chapters($index, $value)
  {
    $this->_set_arr_value("14", $index, $value);
  }
  function set_all_chapterss($values)
  {
    return $this->_set_arr_values("14", $values);
  }
  function remove_last_chapters()
  {
    $this->_remove_last_arr_value("14");
  }
  function chapterss_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_chapterss()
  {
    return $this->_get_value("14");
  }
}
class NovelItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NovelItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["NovelItem"]["1"] = "item_id";
    self::$fields["NovelItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NovelItem"]["2"] = "title";
    self::$fields["NovelItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["NovelItem"]["3"] = "thumb_picture_uri";
    self::$fields["NovelItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["NovelItem"]["4"] = "description";
    self::$fields["NovelItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["NovelItem"]["5"] = "seo";
    self::$fields["NovelItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["NovelItem"]["6"] = "tag_label";
    self::$fields["NovelItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["NovelItem"]["7"] = "create_timestamp";
    self::$fields["NovelItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["NovelItem"]["8"] = "update_timestamp";
    self::$fields["NovelItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["NovelItem"]["9"] = "hidden";
    self::$fields["NovelItem"]["10"] = "PBInt";
    $this->values["10"] = "";
    self::$fieldNames["NovelItem"]["10"] = "num_of_chapters";
    self::$fields["NovelItem"]["11"] = "ItemLite";
    $this->values["11"] = array();
    self::$fieldNames["NovelItem"]["11"] = "chapters";
    self::$fields["NovelItem"]["12"] = "PBBool";
    $this->values["12"] = "";
    self::$fieldNames["NovelItem"]["12"] = "adult_only";
    self::$fields["NovelItem"]["13"] = "PBString";
    $this->values["13"] = "";
    self::$fieldNames["NovelItem"]["13"] = "source";
    self::$fields["NovelItem"]["14"] = "PBString";
    $this->values["14"] = array();
    self::$fieldNames["NovelItem"]["14"] = "author";
    self::$fields["NovelItem"]["16"] = "PBString";
    $this->values["16"] = array();
    self::$fieldNames["NovelItem"]["16"] = "translator";
    self::$fields["NovelItem"]["15"] = "PBString";
    $this->values["15"] = array();
    self::$fieldNames["NovelItem"]["15"] = "genre";
    self::$fields["NovelItem"]["17"] = "PBString";
    $this->values["17"] = "";
    self::$fieldNames["NovelItem"]["17"] = "status";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["NovelItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function num_of_chapters()
  {
    return $this->_get_value("10");
  }
  function set_num_of_chapters($value)
  {
    return $this->_set_value("10", $value);
  }
  function chapters($offset)
  {
    return $this->_get_arr_value("11", $offset);
  }
  function add_chapters()
  {
    return $this->_add_arr_value("11");
  }
  function set_chapters($index, $value)
  {
    $this->_set_arr_value("11", $index, $value);
  }
  function set_all_chapterss($values)
  {
    return $this->_set_arr_values("11", $values);
  }
  function remove_last_chapters()
  {
    $this->_remove_last_arr_value("11");
  }
  function chapterss_size()
  {
    return $this->_get_arr_size("11");
  }
  function get_chapterss()
  {
    return $this->_get_value("11");
  }
  function adult_only()
  {
    return $this->_get_value("12");
  }
  function set_adult_only($value)
  {
    return $this->_set_value("12", $value);
  }
  function source()
  {
    return $this->_get_value("13");
  }
  function set_source($value)
  {
    return $this->_set_value("13", $value);
  }
  function author($offset)
  {
    $v = $this->_get_arr_value("14", $offset);
    return $v->get_value();
  }
  function append_author($value)
  {
    $v = $this->_add_arr_value("14");
    $v->set_value($value);
  }
  function set_author($index, $value)
  {
    $v = new self::$fields["NovelItem"]["14"]();
    $v->set_value($value);
    $this->_set_arr_value("14", $index, $v);
  }
  function remove_last_author()
  {
    $this->_remove_last_arr_value("14");
  }
  function authors_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_authors()
  {
    return $this->_get_value("14");
  }
  function translator($offset)
  {
    $v = $this->_get_arr_value("16", $offset);
    return $v->get_value();
  }
  function append_translator($value)
  {
    $v = $this->_add_arr_value("16");
    $v->set_value($value);
  }
  function set_translator($index, $value)
  {
    $v = new self::$fields["NovelItem"]["16"]();
    $v->set_value($value);
    $this->_set_arr_value("16", $index, $v);
  }
  function remove_last_translator()
  {
    $this->_remove_last_arr_value("16");
  }
  function translators_size()
  {
    return $this->_get_arr_size("16");
  }
  function get_translators()
  {
    return $this->_get_value("16");
  }
  function genre($offset)
  {
    $v = $this->_get_arr_value("15", $offset);
    return $v->get_value();
  }
  function append_genre($value)
  {
    $v = $this->_add_arr_value("15");
    $v->set_value($value);
  }
  function set_genre($index, $value)
  {
    $v = new self::$fields["NovelItem"]["15"]();
    $v->set_value($value);
    $this->_set_arr_value("15", $index, $v);
  }
  function remove_last_genre()
  {
    $this->_remove_last_arr_value("15");
  }
  function genres_size()
  {
    return $this->_get_arr_size("15");
  }
  function get_genres()
  {
    return $this->_get_value("15");
  }
  function status()
  {
    return $this->_get_value("17");
  }
  function set_status($value)
  {
    return $this->_set_value("17", $value);
  }
}
class NovelChapterItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NovelChapterItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["NovelChapterItem"]["1"] = "item_id";
    self::$fields["NovelChapterItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NovelChapterItem"]["2"] = "title";
    self::$fields["NovelChapterItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["NovelChapterItem"]["3"] = "thumb_picture_uri";
    self::$fields["NovelChapterItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["NovelChapterItem"]["4"] = "description";
    self::$fields["NovelChapterItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["NovelChapterItem"]["5"] = "seo";
    self::$fields["NovelChapterItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["NovelChapterItem"]["6"] = "tag_label";
    self::$fields["NovelChapterItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["NovelChapterItem"]["7"] = "create_timestamp";
    self::$fields["NovelChapterItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["NovelChapterItem"]["8"] = "update_timestamp";
    self::$fields["NovelChapterItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["NovelChapterItem"]["9"] = "hidden";
    self::$fields["NovelChapterItem"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["NovelChapterItem"]["10"] = "novel_id";
    self::$fields["NovelChapterItem"]["11"] = "PBInt";
    $this->values["11"] = "";
    self::$fieldNames["NovelChapterItem"]["11"] = "chapter_index";
    self::$fields["NovelChapterItem"]["15"] = "PBString";
    $this->values["15"] = "";
    self::$fieldNames["NovelChapterItem"]["15"] = "file_id";
    self::$fields["NovelChapterItem"]["13"] = "ItemLite";
    $this->values["13"] = "";
    self::$fieldNames["NovelChapterItem"]["13"] = "novel";
    self::$fields["NovelChapterItem"]["14"] = "ItemLite";
    $this->values["14"] = array();
    self::$fieldNames["NovelChapterItem"]["14"] = "chapters";
    self::$fields["NovelChapterItem"]["16"] = "PBBool";
    $this->values["16"] = "";
    self::$fieldNames["NovelChapterItem"]["16"] = "bookmarked";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["NovelChapterItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function novel_id()
  {
    return $this->_get_value("10");
  }
  function set_novel_id($value)
  {
    return $this->_set_value("10", $value);
  }
  function chapter_index()
  {
    return $this->_get_value("11");
  }
  function set_chapter_index($value)
  {
    return $this->_set_value("11", $value);
  }
  function file_id()
  {
    return $this->_get_value("15");
  }
  function set_file_id($value)
  {
    return $this->_set_value("15", $value);
  }
  function novel()
  {
    return $this->_get_value("13");
  }
  function set_novel($value)
  {
    return $this->_set_value("13", $value);
  }
  function chapters($offset)
  {
    return $this->_get_arr_value("14", $offset);
  }
  function add_chapters()
  {
    return $this->_add_arr_value("14");
  }
  function set_chapters($index, $value)
  {
    $this->_set_arr_value("14", $index, $value);
  }
  function set_all_chapterss($values)
  {
    return $this->_set_arr_values("14", $values);
  }
  function remove_last_chapters()
  {
    $this->_remove_last_arr_value("14");
  }
  function chapterss_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_chapterss()
  {
    return $this->_get_value("14");
  }
  function bookmarked()
  {
    return $this->_get_value("16");
  }
  function set_bookmarked($value)
  {
    return $this->_set_value("16", $value);
  }
}
class ExternalLink extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ExternalLink"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ExternalLink"]["1"] = "provider";
    self::$fields["ExternalLink"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ExternalLink"]["2"] = "quality";
    self::$fields["ExternalLink"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ExternalLink"]["3"] = "url";
  }
  function provider()
  {
    return $this->_get_value("1");
  }
  function set_provider($value)
  {
    return $this->_set_value("1", $value);
  }
  function quality()
  {
    return $this->_get_value("2");
  }
  function set_quality($value)
  {
    return $this->_set_value("2", $value);
  }
  function url()
  {
    return $this->_get_value("3");
  }
  function set_url($value)
  {
    return $this->_set_value("3", $value);
  }
}
class VideoItem_ContainerType extends PBEnum
{
  const FLV  = 0;
  const MP4  = 1;
  const _3GP  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "FLV",
			1 => "MP4",
			2 => "_3GP");
   }
}
class VideoItem_ExternalChannel extends PBEnum
{
  const YOUTUBE  = 0;
  const HULU  = 1;
  const VEVO  = 2;
  const YahooVideo  = 3;
  const MetaCafe  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "YOUTUBE",
			1 => "HULU",
			2 => "VEVO",
			3 => "YahooVideo",
			4 => "MetaCafe");
   }
}
class VideoItem_VideoMode extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["VideoItem_VideoMode"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["VideoItem_VideoMode"]["1"] = "id";
    self::$fields["VideoItem_VideoMode"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["VideoItem_VideoMode"]["2"] = "width";
    self::$fields["VideoItem_VideoMode"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["VideoItem_VideoMode"]["3"] = "height";
  }
  function id()
  {
    return $this->_get_value("1");
  }
  function set_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function width()
  {
    return $this->_get_value("2");
  }
  function set_width($value)
  {
    return $this->_set_value("2", $value);
  }
  function height()
  {
    return $this->_get_value("3");
  }
  function set_height($value)
  {
    return $this->_set_value("3", $value);
  }
}
class VideoItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["VideoItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["VideoItem"]["1"] = "item_id";
    self::$fields["VideoItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["VideoItem"]["2"] = "title";
    self::$fields["VideoItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["VideoItem"]["3"] = "thumb_picture_uri";
    self::$fields["VideoItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["VideoItem"]["4"] = "description";
    self::$fields["VideoItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["VideoItem"]["5"] = "seo";
    self::$fields["VideoItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["VideoItem"]["6"] = "tag_label";
    self::$fields["VideoItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["VideoItem"]["7"] = "create_timestamp";
    self::$fields["VideoItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["VideoItem"]["8"] = "update_timestamp";
    self::$fields["VideoItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["VideoItem"]["9"] = "hidden";
    self::$fields["VideoItem"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["VideoItem"]["10"] = "video_uri";
    self::$fields["VideoItem"]["11"] = "PBInt";
    $this->values["11"] = "";
    self::$fieldNames["VideoItem"]["11"] = "video_size";
    self::$fields["VideoItem"]["12"] = "VideoItem_ContainerType";
    $this->values["12"] = "";
    self::$fieldNames["VideoItem"]["12"] = "container_type";
    self::$fields["VideoItem"]["14"] = "VideoItem_ExternalChannel";
    $this->values["14"] = "";
    $this->values["14"] = new VideoItem_ExternalChannel();
    $this->values["14"]->value = VideoItem_ExternalChannel::YOUTUBE;
    self::$fieldNames["VideoItem"]["14"] = "external_channel";
    self::$fields["VideoItem"]["15"] = "VideoItem_VideoMode";
    $this->values["15"] = array();
    self::$fieldNames["VideoItem"]["15"] = "support_mode";
    self::$fields["VideoItem"]["16"] = "ExternalLink";
    $this->values["16"] = array();
    self::$fieldNames["VideoItem"]["16"] = "external_link";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["VideoItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function video_uri()
  {
    return $this->_get_value("10");
  }
  function set_video_uri($value)
  {
    return $this->_set_value("10", $value);
  }
  function video_size()
  {
    return $this->_get_value("11");
  }
  function set_video_size($value)
  {
    return $this->_set_value("11", $value);
  }
  function container_type()
  {
    return $this->_get_value("12");
  }
  function set_container_type($value)
  {
    return $this->_set_value("12", $value);
  }
  function container_type_string()
  {
    return $this->values["12"]->get_description();
  }
  function external_channel()
  {
    return $this->_get_value("14");
  }
  function set_external_channel($value)
  {
    return $this->_set_value("14", $value);
  }
  function external_channel_string()
  {
    return $this->values["14"]->get_description();
  }
  function support_mode($offset)
  {
    return $this->_get_arr_value("15", $offset);
  }
  function add_support_mode()
  {
    return $this->_add_arr_value("15");
  }
  function set_support_mode($index, $value)
  {
    $this->_set_arr_value("15", $index, $value);
  }
  function set_all_support_modes($values)
  {
    return $this->_set_arr_values("15", $values);
  }
  function remove_last_support_mode()
  {
    $this->_remove_last_arr_value("15");
  }
  function support_modes_size()
  {
    return $this->_get_arr_size("15");
  }
  function get_support_modes()
  {
    return $this->_get_value("15");
  }
  function external_link($offset)
  {
    return $this->_get_arr_value("16", $offset);
  }
  function add_external_link()
  {
    return $this->_add_arr_value("16");
  }
  function set_external_link($index, $value)
  {
    $this->_set_arr_value("16", $index, $value);
  }
  function set_all_external_links($values)
  {
    return $this->_set_arr_values("16", $values);
  }
  function remove_last_external_link()
  {
    $this->_remove_last_arr_value("16");
  }
  function external_links_size()
  {
    return $this->_get_arr_size("16");
  }
  function get_external_links()
  {
    return $this->_get_value("16");
  }
}
class MoviePhoto extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MoviePhoto"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["MoviePhoto"]["1"] = "item_id";
    self::$fields["MoviePhoto"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["MoviePhoto"]["2"] = "description";
    self::$fields["MoviePhoto"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["MoviePhoto"]["3"] = "photo_uri";
    self::$fields["MoviePhoto"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["MoviePhoto"]["4"] = "photo_source";
    self::$fields["MoviePhoto"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["MoviePhoto"]["5"] = "photo_size";
    self::$fields["MoviePhoto"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["MoviePhoto"]["6"] = "movie_id";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function photo_uri()
  {
    return $this->_get_value("3");
  }
  function set_photo_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function photo_source()
  {
    return $this->_get_value("4");
  }
  function set_photo_source($value)
  {
    return $this->_set_value("4", $value);
  }
  function photo_size()
  {
    return $this->_get_value("5");
  }
  function set_photo_size($value)
  {
    return $this->_set_value("5", $value);
  }
  function movie_id()
  {
    return $this->_get_value("6");
  }
  function set_movie_id($value)
  {
    return $this->_set_value("6", $value);
  }
}
class MovieFormat extends PBEnum
{
  const _2D  = 0;
  const _3D  = 1;
  const _4D  = 2;
  const _5D  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "_2D",
			1 => "_3D",
			2 => "_4D",
			3 => "_5D");
   }
}
class MovieEpisode extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MovieEpisode"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["MovieEpisode"]["1"] = "item_id";
    self::$fields["MovieEpisode"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["MovieEpisode"]["2"] = "title";
    self::$fields["MovieEpisode"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["MovieEpisode"]["3"] = "episode_index";
    self::$fields["MovieEpisode"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["MovieEpisode"]["4"] = "thumb_picture_uri";
    self::$fields["MovieEpisode"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["MovieEpisode"]["5"] = "description";
    self::$fields["MovieEpisode"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["MovieEpisode"]["6"] = "tag_label";
    self::$fields["MovieEpisode"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["MovieEpisode"]["7"] = "create_timestamp";
    self::$fields["MovieEpisode"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["MovieEpisode"]["8"] = "update_timestamp";
    self::$fields["MovieEpisode"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["MovieEpisode"]["9"] = "hidden";
    self::$fields["MovieEpisode"]["10"] = "PBInt";
    $this->values["10"] = "";
    self::$fieldNames["MovieEpisode"]["10"] = "duration";
    self::$fields["MovieEpisode"]["11"] = "PBString";
    $this->values["11"] = "";
    self::$fieldNames["MovieEpisode"]["11"] = "episode_uri";
    self::$fields["MovieEpisode"]["13"] = "PBString";
    $this->values["13"] = "";
    self::$fieldNames["MovieEpisode"]["13"] = "quality";
    self::$fields["MovieEpisode"]["12"] = "PBString";
    $this->values["12"] = "";
    self::$fieldNames["MovieEpisode"]["12"] = "movie_id";
    self::$fields["MovieEpisode"]["14"] = "ItemLite";
    $this->values["14"] = "";
    self::$fieldNames["MovieEpisode"]["14"] = "movie";
    self::$fields["MovieEpisode"]["15"] = "ItemLite";
    $this->values["15"] = array();
    self::$fieldNames["MovieEpisode"]["15"] = "eps";
    self::$fields["MovieEpisode"]["16"] = "ExternalLink";
    $this->values["16"] = array();
    self::$fieldNames["MovieEpisode"]["16"] = "links";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function episode_index()
  {
    return $this->_get_value("3");
  }
  function set_episode_index($value)
  {
    return $this->_set_value("3", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("4");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function description()
  {
    return $this->_get_value("5");
  }
  function set_description($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["MovieEpisode"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function duration()
  {
    return $this->_get_value("10");
  }
  function set_duration($value)
  {
    return $this->_set_value("10", $value);
  }
  function episode_uri()
  {
    return $this->_get_value("11");
  }
  function set_episode_uri($value)
  {
    return $this->_set_value("11", $value);
  }
  function quality()
  {
    return $this->_get_value("13");
  }
  function set_quality($value)
  {
    return $this->_set_value("13", $value);
  }
  function movie_id()
  {
    return $this->_get_value("12");
  }
  function set_movie_id($value)
  {
    return $this->_set_value("12", $value);
  }
  function movie()
  {
    return $this->_get_value("14");
  }
  function set_movie($value)
  {
    return $this->_set_value("14", $value);
  }
  function eps($offset)
  {
    return $this->_get_arr_value("15", $offset);
  }
  function add_eps()
  {
    return $this->_add_arr_value("15");
  }
  function set_eps($index, $value)
  {
    $this->_set_arr_value("15", $index, $value);
  }
  function set_all_epss($values)
  {
    return $this->_set_arr_values("15", $values);
  }
  function remove_last_eps()
  {
    $this->_remove_last_arr_value("15");
  }
  function epss_size()
  {
    return $this->_get_arr_size("15");
  }
  function get_epss()
  {
    return $this->_get_value("15");
  }
  function links($offset)
  {
    return $this->_get_arr_value("16", $offset);
  }
  function add_links()
  {
    return $this->_add_arr_value("16");
  }
  function set_links($index, $value)
  {
    $this->_set_arr_value("16", $index, $value);
  }
  function set_all_linkss($values)
  {
    return $this->_set_arr_values("16", $values);
  }
  function remove_last_links()
  {
    $this->_remove_last_arr_value("16");
  }
  function linkss_size()
  {
    return $this->_get_arr_size("16");
  }
  function get_linkss()
  {
    return $this->_get_value("16");
  }
}
class MovieItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MovieItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["MovieItem"]["1"] = "item_id";
    self::$fields["MovieItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["MovieItem"]["2"] = "title";
    self::$fields["MovieItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["MovieItem"]["3"] = "thumb_picture_uri";
    self::$fields["MovieItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["MovieItem"]["4"] = "description";
    self::$fields["MovieItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["MovieItem"]["5"] = "seo";
    self::$fields["MovieItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["MovieItem"]["6"] = "tag_label";
    self::$fields["MovieItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["MovieItem"]["7"] = "create_timestamp";
    self::$fields["MovieItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["MovieItem"]["8"] = "update_timestamp";
    self::$fields["MovieItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["MovieItem"]["9"] = "hidden";
    self::$fields["MovieItem"]["10"] = "PBString";
    $this->values["10"] = array();
    self::$fieldNames["MovieItem"]["10"] = "trailer_video_id";
    self::$fields["MovieItem"]["22"] = "MovieEpisode";
    $this->values["22"] = array();
    self::$fieldNames["MovieItem"]["22"] = "eps";
    self::$fields["MovieItem"]["18"] = "MoviePhoto";
    $this->values["18"] = array();
    self::$fieldNames["MovieItem"]["18"] = "photo";
    self::$fields["MovieItem"]["12"] = "ProfileLite";
    $this->values["12"] = array();
    self::$fieldNames["MovieItem"]["12"] = "actor";
    self::$fields["MovieItem"]["13"] = "ProfileLite";
    $this->values["13"] = array();
    self::$fieldNames["MovieItem"]["13"] = "director";
    self::$fields["MovieItem"]["14"] = "ProfileLite";
    $this->values["14"] = array();
    self::$fieldNames["MovieItem"]["14"] = "writer";
    self::$fields["MovieItem"]["15"] = "PBString";
    $this->values["15"] = "";
    self::$fieldNames["MovieItem"]["15"] = "country";
    self::$fields["MovieItem"]["16"] = "PBInt";
    $this->values["16"] = "";
    self::$fieldNames["MovieItem"]["16"] = "release_timestamp";
    self::$fields["MovieItem"]["17"] = "PBInt";
    $this->values["17"] = "";
    self::$fieldNames["MovieItem"]["17"] = "duration";
    self::$fields["MovieItem"]["23"] = "PBInt";
    $this->values["23"] = "";
    self::$fieldNames["MovieItem"]["23"] = "total_episode";
    self::$fields["MovieItem"]["19"] = "PBString";
    $this->values["19"] = array();
    self::$fieldNames["MovieItem"]["19"] = "genre";
    self::$fields["MovieItem"]["21"] = "MovieFormat";
    $this->values["21"] = array();
    self::$fieldNames["MovieItem"]["21"] = "format";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["MovieItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function trailer_video_id($offset)
  {
    $v = $this->_get_arr_value("10", $offset);
    return $v->get_value();
  }
  function append_trailer_video_id($value)
  {
    $v = $this->_add_arr_value("10");
    $v->set_value($value);
  }
  function set_trailer_video_id($index, $value)
  {
    $v = new self::$fields["MovieItem"]["10"]();
    $v->set_value($value);
    $this->_set_arr_value("10", $index, $v);
  }
  function remove_last_trailer_video_id()
  {
    $this->_remove_last_arr_value("10");
  }
  function trailer_video_ids_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_trailer_video_ids()
  {
    return $this->_get_value("10");
  }
  function eps($offset)
  {
    return $this->_get_arr_value("22", $offset);
  }
  function add_eps()
  {
    return $this->_add_arr_value("22");
  }
  function set_eps($index, $value)
  {
    $this->_set_arr_value("22", $index, $value);
  }
  function set_all_epss($values)
  {
    return $this->_set_arr_values("22", $values);
  }
  function remove_last_eps()
  {
    $this->_remove_last_arr_value("22");
  }
  function epss_size()
  {
    return $this->_get_arr_size("22");
  }
  function get_epss()
  {
    return $this->_get_value("22");
  }
  function photo($offset)
  {
    return $this->_get_arr_value("18", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("18");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("18", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("18", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("18");
  }
  function photos_size()
  {
    return $this->_get_arr_size("18");
  }
  function get_photos()
  {
    return $this->_get_value("18");
  }
  function actor($offset)
  {
    return $this->_get_arr_value("12", $offset);
  }
  function add_actor()
  {
    return $this->_add_arr_value("12");
  }
  function set_actor($index, $value)
  {
    $this->_set_arr_value("12", $index, $value);
  }
  function set_all_actors($values)
  {
    return $this->_set_arr_values("12", $values);
  }
  function remove_last_actor()
  {
    $this->_remove_last_arr_value("12");
  }
  function actors_size()
  {
    return $this->_get_arr_size("12");
  }
  function get_actors()
  {
    return $this->_get_value("12");
  }
  function director($offset)
  {
    return $this->_get_arr_value("13", $offset);
  }
  function add_director()
  {
    return $this->_add_arr_value("13");
  }
  function set_director($index, $value)
  {
    $this->_set_arr_value("13", $index, $value);
  }
  function set_all_directors($values)
  {
    return $this->_set_arr_values("13", $values);
  }
  function remove_last_director()
  {
    $this->_remove_last_arr_value("13");
  }
  function directors_size()
  {
    return $this->_get_arr_size("13");
  }
  function get_directors()
  {
    return $this->_get_value("13");
  }
  function writer($offset)
  {
    return $this->_get_arr_value("14", $offset);
  }
  function add_writer()
  {
    return $this->_add_arr_value("14");
  }
  function set_writer($index, $value)
  {
    $this->_set_arr_value("14", $index, $value);
  }
  function set_all_writers($values)
  {
    return $this->_set_arr_values("14", $values);
  }
  function remove_last_writer()
  {
    $this->_remove_last_arr_value("14");
  }
  function writers_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_writers()
  {
    return $this->_get_value("14");
  }
  function country()
  {
    return $this->_get_value("15");
  }
  function set_country($value)
  {
    return $this->_set_value("15", $value);
  }
  function release_timestamp()
  {
    return $this->_get_value("16");
  }
  function set_release_timestamp($value)
  {
    return $this->_set_value("16", $value);
  }
  function duration()
  {
    return $this->_get_value("17");
  }
  function set_duration($value)
  {
    return $this->_set_value("17", $value);
  }
  function total_episode()
  {
    return $this->_get_value("23");
  }
  function set_total_episode($value)
  {
    return $this->_set_value("23", $value);
  }
  function genre($offset)
  {
    $v = $this->_get_arr_value("19", $offset);
    return $v->get_value();
  }
  function append_genre($value)
  {
    $v = $this->_add_arr_value("19");
    $v->set_value($value);
  }
  function set_genre($index, $value)
  {
    $v = new self::$fields["MovieItem"]["19"]();
    $v->set_value($value);
    $this->_set_arr_value("19", $index, $v);
  }
  function remove_last_genre()
  {
    $this->_remove_last_arr_value("19");
  }
  function genres_size()
  {
    return $this->_get_arr_size("19");
  }
  function get_genres()
  {
    return $this->_get_value("19");
  }
  function format($offset)
  {
    $v = $this->_get_arr_value("21", $offset);
    return $v->get_value();
  }
  function append_format($value)
  {
    $v = $this->_add_arr_value("21");
    $v->set_value($value);
  }
  function set_format($index, $value)
  {
    $v = new self::$fields["MovieItem"]["21"]();
    $v->set_value($value);
    $this->_set_arr_value("21", $index, $v);
  }
  function remove_last_format()
  {
    $this->_remove_last_arr_value("21");
  }
  function formats_size()
  {
    return $this->_get_arr_size("21");
  }
  function get_formats()
  {
    return $this->_get_value("21");
  }
}
class Param extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Param"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Param"]["1"] = "key";
    self::$fields["Param"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Param"]["2"] = "value";
  }
  function key()
  {
    return $this->_get_value("1");
  }
  function set_key($value)
  {
    return $this->_set_value("1", $value);
  }
  function value()
  {
    return $this->_get_value("2");
  }
  function set_value($value)
  {
    return $this->_set_value("2", $value);
  }
}
class CrawlUri_HTTPMethod extends PBEnum
{
  const POST  = 0;
  const GET  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "POST",
			1 => "GET");
   }
}
class CrawlUri extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["CrawlUri"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["CrawlUri"]["6"] = "crawl_uri_id";
    self::$fields["CrawlUri"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["CrawlUri"]["1"] = "uri";
    self::$fields["CrawlUri"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["CrawlUri"]["4"] = "movie_id";
    self::$fields["CrawlUri"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["CrawlUri"]["5"] = "cinema_id";
    self::$fields["CrawlUri"]["2"] = "CrawlUri_HTTPMethod";
    $this->values["2"] = "";
    self::$fieldNames["CrawlUri"]["2"] = "method";
    self::$fields["CrawlUri"]["3"] = "Param";
    $this->values["3"] = array();
    self::$fieldNames["CrawlUri"]["3"] = "params";
    self::$fields["CrawlUri"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["CrawlUri"]["7"] = "url";
  }
  function crawl_uri_id()
  {
    return $this->_get_value("6");
  }
  function set_crawl_uri_id($value)
  {
    return $this->_set_value("6", $value);
  }
  function uri()
  {
    return $this->_get_value("1");
  }
  function set_uri($value)
  {
    return $this->_set_value("1", $value);
  }
  function movie_id()
  {
    return $this->_get_value("4");
  }
  function set_movie_id($value)
  {
    return $this->_set_value("4", $value);
  }
  function cinema_id()
  {
    return $this->_get_value("5");
  }
  function set_cinema_id($value)
  {
    return $this->_set_value("5", $value);
  }
  function method()
  {
    return $this->_get_value("2");
  }
  function set_method($value)
  {
    return $this->_set_value("2", $value);
  }
  function method_string()
  {
    return $this->values["2"]->get_description();
  }
  function params($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_params()
  {
    return $this->_add_arr_value("3");
  }
  function set_params($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_paramss($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_params()
  {
    $this->_remove_last_arr_value("3");
  }
  function paramss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_paramss()
  {
    return $this->_get_value("3");
  }
  function url()
  {
    return $this->_get_value("7");
  }
  function set_url($value)
  {
    return $this->_set_value("7", $value);
  }
}
class MovieShowtime extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MovieShowtime"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["MovieShowtime"]["1"] = "movie_id";
    self::$fields["MovieShowtime"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["MovieShowtime"]["2"] = "movie_name";
    self::$fields["MovieShowtime"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["MovieShowtime"]["3"] = "cinema_id";
    self::$fields["MovieShowtime"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["MovieShowtime"]["4"] = "cinema_name";
    self::$fields["MovieShowtime"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["MovieShowtime"]["7"] = "cinema_website";
    self::$fields["MovieShowtime"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["MovieShowtime"]["8"] = "cinema_mobile";
    self::$fields["MovieShowtime"]["9"] = "Location";
    $this->values["9"] = "";
    self::$fieldNames["MovieShowtime"]["9"] = "address";
    self::$fields["MovieShowtime"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["MovieShowtime"]["6"] = "timestamp";
    self::$fields["MovieShowtime"]["10"] = "MovieFormat";
    $this->values["10"] = "";
    self::$fieldNames["MovieShowtime"]["10"] = "format";
    self::$fields["MovieShowtime"]["11"] = "PBBool";
    $this->values["11"] = "";
    self::$fieldNames["MovieShowtime"]["11"] = "dubbed";
  }
  function movie_id()
  {
    return $this->_get_value("1");
  }
  function set_movie_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function movie_name()
  {
    return $this->_get_value("2");
  }
  function set_movie_name($value)
  {
    return $this->_set_value("2", $value);
  }
  function cinema_id()
  {
    return $this->_get_value("3");
  }
  function set_cinema_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function cinema_name()
  {
    return $this->_get_value("4");
  }
  function set_cinema_name($value)
  {
    return $this->_set_value("4", $value);
  }
  function cinema_website()
  {
    return $this->_get_value("7");
  }
  function set_cinema_website($value)
  {
    return $this->_set_value("7", $value);
  }
  function cinema_mobile()
  {
    return $this->_get_value("8");
  }
  function set_cinema_mobile($value)
  {
    return $this->_set_value("8", $value);
  }
  function address()
  {
    return $this->_get_value("9");
  }
  function set_address($value)
  {
    return $this->_set_value("9", $value);
  }
  function timestamp()
  {
    return $this->_get_value("6");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function format()
  {
    return $this->_get_value("10");
  }
  function set_format($value)
  {
    return $this->_set_value("10", $value);
  }
  function format_string()
  {
    return $this->values["10"]->get_description();
  }
  function dubbed()
  {
    return $this->_get_value("11");
  }
  function set_dubbed($value)
  {
    return $this->_set_value("11", $value);
  }
}
class PersonalEvent extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PersonalEvent"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["PersonalEvent"]["3"] = "content_id";
    self::$fields["PersonalEvent"]["1"] = "PBInt";
    $this->values["1"] = "";
    self::$fieldNames["PersonalEvent"]["1"] = "index";
    self::$fields["PersonalEvent"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["PersonalEvent"]["5"] = "timestamp";
    self::$fields["PersonalEvent"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PersonalEvent"]["2"] = "description";
    self::$fields["PersonalEvent"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["PersonalEvent"]["4"] = "public_people_id";
  }
  function content_id()
  {
    return $this->_get_value("3");
  }
  function set_content_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function index()
  {
    return $this->_get_value("1");
  }
  function set_index($value)
  {
    return $this->_set_value("1", $value);
  }
  function timestamp()
  {
    return $this->_get_value("5");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function public_people_id()
  {
    return $this->_get_value("4");
  }
  function set_public_people_id($value)
  {
    return $this->_set_value("4", $value);
  }
}
class RelatedContent_Action extends PBEnum
{
  const CAST  = 0;
  const DIRECT  = 1;
  const WRITE  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "CAST",
			1 => "DIRECT",
			2 => "WRITE");
   }
}
class RelatedContent extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RelatedContent"]["1"] = "ItemLite";
    $this->values["1"] = "";
    self::$fieldNames["RelatedContent"]["1"] = "item";
    self::$fields["RelatedContent"]["2"] = "RelatedContent_Action";
    $this->values["2"] = "";
    self::$fieldNames["RelatedContent"]["2"] = "action";
  }
  function item()
  {
    return $this->_get_value("1");
  }
  function set_item($value)
  {
    return $this->_set_value("1", $value);
  }
  function action()
  {
    return $this->_get_value("2");
  }
  function set_action($value)
  {
    return $this->_set_value("2", $value);
  }
  function action_string()
  {
    return $this->values["2"]->get_description();
  }
}
class PublicPeople extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PublicPeople"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PublicPeople"]["1"] = "uid";
    self::$fields["PublicPeople"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PublicPeople"]["2"] = "username";
    self::$fields["PublicPeople"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["PublicPeople"]["3"] = "full_name";
    self::$fields["PublicPeople"]["13"] = "PBString";
    $this->values["13"] = "";
    self::$fieldNames["PublicPeople"]["13"] = "nickname";
    self::$fields["PublicPeople"]["11"] = "Gender";
    $this->values["11"] = "";
    self::$fieldNames["PublicPeople"]["11"] = "gender";
    self::$fields["PublicPeople"]["12"] = "PBString";
    $this->values["12"] = "";
    self::$fieldNames["PublicPeople"]["12"] = "bio";
    self::$fields["PublicPeople"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["PublicPeople"]["4"] = "profile_picture_uri";
    self::$fields["PublicPeople"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["PublicPeople"]["5"] = "birthday_timestamp";
    self::$fields["PublicPeople"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["PublicPeople"]["6"] = "occupation";
    self::$fields["PublicPeople"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["PublicPeople"]["7"] = "nationality";
    self::$fields["PublicPeople"]["10"] = "PersonalEvent";
    $this->values["10"] = array();
    self::$fieldNames["PublicPeople"]["10"] = "events";
    self::$fields["PublicPeople"]["8"] = "MoviePhoto";
    $this->values["8"] = array();
    self::$fieldNames["PublicPeople"]["8"] = "photo";
    self::$fields["PublicPeople"]["16"] = "RelatedContent";
    $this->values["16"] = array();
    self::$fieldNames["PublicPeople"]["16"] = "related_content";
    self::$fields["PublicPeople"]["14"] = "PBInt";
    $this->values["14"] = "";
    self::$fieldNames["PublicPeople"]["14"] = "create_timestamp";
    self::$fields["PublicPeople"]["15"] = "PBInt";
    $this->values["15"] = "";
    self::$fieldNames["PublicPeople"]["15"] = "update_timestamp";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function username()
  {
    return $this->_get_value("2");
  }
  function set_username($value)
  {
    return $this->_set_value("2", $value);
  }
  function full_name()
  {
    return $this->_get_value("3");
  }
  function set_full_name($value)
  {
    return $this->_set_value("3", $value);
  }
  function nickname()
  {
    return $this->_get_value("13");
  }
  function set_nickname($value)
  {
    return $this->_set_value("13", $value);
  }
  function gender()
  {
    return $this->_get_value("11");
  }
  function set_gender($value)
  {
    return $this->_set_value("11", $value);
  }
  function gender_string()
  {
    return $this->values["11"]->get_description();
  }
  function bio()
  {
    return $this->_get_value("12");
  }
  function set_bio($value)
  {
    return $this->_set_value("12", $value);
  }
  function profile_picture_uri()
  {
    return $this->_get_value("4");
  }
  function set_profile_picture_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function birthday_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_birthday_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function occupation()
  {
    return $this->_get_value("6");
  }
  function set_occupation($value)
  {
    return $this->_set_value("6", $value);
  }
  function nationality()
  {
    return $this->_get_value("7");
  }
  function set_nationality($value)
  {
    return $this->_set_value("7", $value);
  }
  function events($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_events()
  {
    return $this->_add_arr_value("10");
  }
  function set_events($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_eventss($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_events()
  {
    $this->_remove_last_arr_value("10");
  }
  function eventss_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_eventss()
  {
    return $this->_get_value("10");
  }
  function photo($offset)
  {
    return $this->_get_arr_value("8", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("8");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("8", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("8", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("8");
  }
  function photos_size()
  {
    return $this->_get_arr_size("8");
  }
  function get_photos()
  {
    return $this->_get_value("8");
  }
  function related_content($offset)
  {
    return $this->_get_arr_value("16", $offset);
  }
  function add_related_content()
  {
    return $this->_add_arr_value("16");
  }
  function set_related_content($index, $value)
  {
    $this->_set_arr_value("16", $index, $value);
  }
  function set_all_related_contents($values)
  {
    return $this->_set_arr_values("16", $values);
  }
  function remove_last_related_content()
  {
    $this->_remove_last_arr_value("16");
  }
  function related_contents_size()
  {
    return $this->_get_arr_size("16");
  }
  function get_related_contents()
  {
    return $this->_get_value("16");
  }
  function create_timestamp()
  {
    return $this->_get_value("14");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("14", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("15");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("15", $value);
  }
}
class Cinema extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Cinema"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Cinema"]["1"] = "cinema_id";
    self::$fields["Cinema"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["Cinema"]["7"] = "cinema_name";
    self::$fields["Cinema"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Cinema"]["2"] = "description";
    self::$fields["Cinema"]["3"] = "Location";
    $this->values["3"] = "";
    self::$fieldNames["Cinema"]["3"] = "address";
    self::$fields["Cinema"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["Cinema"]["4"] = "mobile";
    self::$fields["Cinema"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["Cinema"]["10"] = "thumb_picture_uri";
    self::$fields["Cinema"]["5"] = "MoviePhoto";
    $this->values["5"] = array();
    self::$fieldNames["Cinema"]["5"] = "photo";
    self::$fields["Cinema"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["Cinema"]["6"] = "website";
    self::$fields["Cinema"]["9"] = "PBInt";
    $this->values["9"] = "";
    self::$fieldNames["Cinema"]["9"] = "create_timestamp";
    self::$fields["Cinema"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["Cinema"]["8"] = "update_timestamp";
  }
  function cinema_id()
  {
    return $this->_get_value("1");
  }
  function set_cinema_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function cinema_name()
  {
    return $this->_get_value("7");
  }
  function set_cinema_name($value)
  {
    return $this->_set_value("7", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function address()
  {
    return $this->_get_value("3");
  }
  function set_address($value)
  {
    return $this->_set_value("3", $value);
  }
  function mobile()
  {
    return $this->_get_value("4");
  }
  function set_mobile($value)
  {
    return $this->_set_value("4", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("10");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("10", $value);
  }
  function photo($offset)
  {
    return $this->_get_arr_value("5", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("5");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("5", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("5", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("5");
  }
  function photos_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_photos()
  {
    return $this->_get_value("5");
  }
  function website()
  {
    return $this->_get_value("6");
  }
  function set_website($value)
  {
    return $this->_set_value("6", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("9");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("9", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
}
class AccountType extends PBEnum
{
  const CASH  = 0;
  const GAME  = 1;
  const FEE  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "CASH",
			1 => "GAME",
			2 => "FEE");
   }
}
class PriceType extends PBEnum
{
  const CINEMA_PRICE_LEVEL  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "CINEMA_PRICE_LEVEL");
   }
}
class PriceLevel extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PriceLevel"]["1"] = "PriceType";
    $this->values["1"] = "";
    self::$fieldNames["PriceLevel"]["1"] = "type";
    self::$fields["PriceLevel"]["2"] = "PBBytes";
    $this->values["2"] = "";
    self::$fieldNames["PriceLevel"]["2"] = "price_level";
  }
  function type()
  {
    return $this->_get_value("1");
  }
  function set_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function type_string()
  {
    return $this->values["1"]->get_description();
  }
  function price_level()
  {
    return $this->_get_value("2");
  }
  function set_price_level($value)
  {
    return $this->_set_value("2", $value);
  }
}
class CinemaPriceLevel extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["CinemaPriceLevel"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["CinemaPriceLevel"]["1"] = "id";
    self::$fields["CinemaPriceLevel"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["CinemaPriceLevel"]["2"] = "cinema_id";
    self::$fields["CinemaPriceLevel"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["CinemaPriceLevel"]["3"] = "description";
    self::$fields["CinemaPriceLevel"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["CinemaPriceLevel"]["4"] = "customer_type";
    self::$fields["CinemaPriceLevel"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["CinemaPriceLevel"]["5"] = "begin_timestamp";
    self::$fields["CinemaPriceLevel"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["CinemaPriceLevel"]["6"] = "end_timestamp";
    self::$fields["CinemaPriceLevel"]["7"] = "MovieFormat";
    $this->values["7"] = "";
    self::$fieldNames["CinemaPriceLevel"]["7"] = "format";
    self::$fields["CinemaPriceLevel"]["8"] = "PB32Bit";
    $this->values["8"] = "";
    self::$fieldNames["CinemaPriceLevel"]["8"] = "price";
    self::$fields["CinemaPriceLevel"]["9"] = "PBString";
    $this->values["9"] = "";
    self::$fieldNames["CinemaPriceLevel"]["9"] = "ticket_type";
  }
  function id()
  {
    return $this->_get_value("1");
  }
  function set_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function cinema_id()
  {
    return $this->_get_value("2");
  }
  function set_cinema_id($value)
  {
    return $this->_set_value("2", $value);
  }
  function description()
  {
    return $this->_get_value("3");
  }
  function set_description($value)
  {
    return $this->_set_value("3", $value);
  }
  function customer_type()
  {
    return $this->_get_value("4");
  }
  function set_customer_type($value)
  {
    return $this->_set_value("4", $value);
  }
  function begin_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_begin_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function end_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_end_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function format()
  {
    return $this->_get_value("7");
  }
  function set_format($value)
  {
    return $this->_set_value("7", $value);
  }
  function format_string()
  {
    return $this->values["7"]->get_description();
  }
  function price()
  {
    return $this->_get_value("8");
  }
  function set_price($value)
  {
    return $this->_set_value("8", $value);
  }
  function ticket_type()
  {
    return $this->_get_value("9");
  }
  function set_ticket_type($value)
  {
    return $this->_set_value("9", $value);
  }
}
class AlbumItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["AlbumItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["AlbumItem"]["1"] = "item_id";
    self::$fields["AlbumItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["AlbumItem"]["2"] = "title";
    self::$fields["AlbumItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["AlbumItem"]["3"] = "thumb_picture_uri";
    self::$fields["AlbumItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["AlbumItem"]["4"] = "description";
    self::$fields["AlbumItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["AlbumItem"]["5"] = "seo";
    self::$fields["AlbumItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["AlbumItem"]["6"] = "tag_label";
    self::$fields["AlbumItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["AlbumItem"]["7"] = "create_timestamp";
    self::$fields["AlbumItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["AlbumItem"]["8"] = "update_timestamp";
    self::$fields["AlbumItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["AlbumItem"]["9"] = "hidden";
    self::$fields["AlbumItem"]["10"] = "PhotoItem";
    $this->values["10"] = array();
    self::$fieldNames["AlbumItem"]["10"] = "photo_item";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["AlbumItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function photo_item($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_photo_item()
  {
    return $this->_add_arr_value("10");
  }
  function set_photo_item($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_photo_items($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_photo_item()
  {
    $this->_remove_last_arr_value("10");
  }
  function photo_items_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_photo_items()
  {
    return $this->_get_value("10");
  }
}
class RageComicPhoto extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RageComicPhoto"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["RageComicPhoto"]["1"] = "item_id";
    self::$fields["RageComicPhoto"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["RageComicPhoto"]["2"] = "description";
    self::$fields["RageComicPhoto"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["RageComicPhoto"]["3"] = "photo_uri";
    self::$fields["RageComicPhoto"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["RageComicPhoto"]["4"] = "photo_source";
    self::$fields["RageComicPhoto"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["RageComicPhoto"]["5"] = "photo_size";
    self::$fields["RageComicPhoto"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["RageComicPhoto"]["6"] = "album_id";
    self::$fields["RageComicPhoto"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["RageComicPhoto"]["7"] = "album_photo_index";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function photo_uri()
  {
    return $this->_get_value("3");
  }
  function set_photo_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function photo_source()
  {
    return $this->_get_value("4");
  }
  function set_photo_source($value)
  {
    return $this->_set_value("4", $value);
  }
  function photo_size()
  {
    return $this->_get_value("5");
  }
  function set_photo_size($value)
  {
    return $this->_set_value("5", $value);
  }
  function album_id()
  {
    return $this->_get_value("6");
  }
  function set_album_id($value)
  {
    return $this->_set_value("6", $value);
  }
  function album_photo_index()
  {
    return $this->_get_value("7");
  }
  function set_album_photo_index($value)
  {
    return $this->_set_value("7", $value);
  }
}
class RageComicAlbumItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RageComicAlbumItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["RageComicAlbumItem"]["1"] = "item_id";
    self::$fields["RageComicAlbumItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["RageComicAlbumItem"]["2"] = "title";
    self::$fields["RageComicAlbumItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["RageComicAlbumItem"]["3"] = "thumb_picture_uri";
    self::$fields["RageComicAlbumItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["RageComicAlbumItem"]["4"] = "description";
    self::$fields["RageComicAlbumItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["RageComicAlbumItem"]["5"] = "seo";
    self::$fields["RageComicAlbumItem"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["RageComicAlbumItem"]["6"] = "tag_label";
    self::$fields["RageComicAlbumItem"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["RageComicAlbumItem"]["7"] = "create_timestamp";
    self::$fields["RageComicAlbumItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["RageComicAlbumItem"]["8"] = "update_timestamp";
    self::$fields["RageComicAlbumItem"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["RageComicAlbumItem"]["9"] = "hidden";
    self::$fields["RageComicAlbumItem"]["10"] = "RageComicPhoto";
    $this->values["10"] = array();
    self::$fieldNames["RageComicAlbumItem"]["10"] = "photo";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["RageComicAlbumItem"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function photo($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("10");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("10");
  }
  function photos_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_photos()
  {
    return $this->_get_value("10");
  }
}
class Article extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Article"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Article"]["1"] = "title";
    self::$fields["Article"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Article"]["2"] = "description";
    self::$fields["Article"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["Article"]["3"] = "thumb_picture_uri";
    self::$fields["Article"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["Article"]["4"] = "create_timestamp";
    self::$fields["Article"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["Article"]["5"] = "update_timestamp";
    self::$fields["Article"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["Article"]["6"] = "url";
    self::$fields["Article"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["Article"]["7"] = "source";
  }
  function title()
  {
    return $this->_get_value("1");
  }
  function set_title($value)
  {
    return $this->_set_value("1", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("4");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function url()
  {
    return $this->_get_value("6");
  }
  function set_url($value)
  {
    return $this->_set_value("6", $value);
  }
  function source()
  {
    return $this->_get_value("7");
  }
  function set_source($value)
  {
    return $this->_set_value("7", $value);
  }
}
class UserPost extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserPost"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["UserPost"]["1"] = "item_id";
    self::$fields["UserPost"]["2"] = "TextMessage";
    $this->values["2"] = "";
    self::$fieldNames["UserPost"]["2"] = "description";
    self::$fields["UserPost"]["3"] = "PhotoItem";
    $this->values["3"] = array();
    self::$fieldNames["UserPost"]["3"] = "photo";
    self::$fields["UserPost"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["UserPost"]["4"] = "video_uri";
    self::$fields["UserPost"]["5"] = "PBString";
    $this->values["5"] = array();
    self::$fieldNames["UserPost"]["5"] = "tag_label";
    self::$fields["UserPost"]["9"] = "PBString";
    $this->values["9"] = "";
    self::$fieldNames["UserPost"]["9"] = "thumb_picture_uri";
    self::$fields["UserPost"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["UserPost"]["7"] = "create_timestamp";
    self::$fields["UserPost"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["UserPost"]["8"] = "update_timestamp";
    self::$fields["UserPost"]["10"] = "ItemLite";
    $this->values["10"] = "";
    self::$fieldNames["UserPost"]["10"] = "content_related";
    self::$fields["UserPost"]["11"] = "Article";
    $this->values["11"] = "";
    self::$fieldNames["UserPost"]["11"] = "article";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function photo($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("3");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("3");
  }
  function photos_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_photos()
  {
    return $this->_get_value("3");
  }
  function video_uri()
  {
    return $this->_get_value("4");
  }
  function set_video_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("5", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("5");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["UserPost"]["5"]();
    $v->set_value($value);
    $this->_set_arr_value("5", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("5");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_tag_labels()
  {
    return $this->_get_value("5");
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("9");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("9", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function content_related()
  {
    return $this->_get_value("10");
  }
  function set_content_related($value)
  {
    return $this->_set_value("10", $value);
  }
  function article()
  {
    return $this->_get_value("11");
  }
  function set_article($value)
  {
    return $this->_set_value("11", $value);
  }
}
class ShareToken extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ShareToken"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ShareToken"]["1"] = "token_id";
    self::$fields["ShareToken"]["2"] = "TextMessage";
    $this->values["2"] = "";
    self::$fieldNames["ShareToken"]["2"] = "share_msg";
    self::$fields["ShareToken"]["3"] = "ProfileLite";
    $this->values["3"] = "";
    self::$fieldNames["ShareToken"]["3"] = "via";
    self::$fields["ShareToken"]["4"] = "ItemLite";
    $this->values["4"] = "";
    self::$fieldNames["ShareToken"]["4"] = "main_item";
    self::$fields["ShareToken"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ShareToken"]["5"] = "create_timestamp";
    self::$fields["ShareToken"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["ShareToken"]["6"] = "update_timestamp";
  }
  function token_id()
  {
    return $this->_get_value("1");
  }
  function set_token_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function share_msg()
  {
    return $this->_get_value("2");
  }
  function set_share_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function via()
  {
    return $this->_get_value("3");
  }
  function set_via($value)
  {
    return $this->_set_value("3", $value);
  }
  function main_item()
  {
    return $this->_get_value("4");
  }
  function set_main_item($value)
  {
    return $this->_set_value("4", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
}
class PublicPost extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PublicPost"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PublicPost"]["1"] = "item_id";
    self::$fields["PublicPost"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PublicPost"]["2"] = "title";
    self::$fields["PublicPost"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["PublicPost"]["3"] = "thumb_picture_uri";
    self::$fields["PublicPost"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["PublicPost"]["4"] = "description";
    self::$fields["PublicPost"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["PublicPost"]["5"] = "seo";
    self::$fields["PublicPost"]["6"] = "PBString";
    $this->values["6"] = array();
    self::$fieldNames["PublicPost"]["6"] = "tag_label";
    self::$fields["PublicPost"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["PublicPost"]["7"] = "create_timestamp";
    self::$fields["PublicPost"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["PublicPost"]["8"] = "update_timestamp";
    self::$fields["PublicPost"]["9"] = "PBBool";
    $this->values["9"] = "";
    self::$fieldNames["PublicPost"]["9"] = "hidden";
    self::$fields["PublicPost"]["10"] = "PhotoItem";
    $this->values["10"] = array();
    self::$fieldNames["PublicPost"]["10"] = "photo";
    self::$fields["PublicPost"]["11"] = "PBInt";
    $this->values["11"] = "";
    self::$fieldNames["PublicPost"]["11"] = "expire_timestamp";
    self::$fields["PublicPost"]["12"] = "PBInt";
    $this->values["12"] = "";
    self::$fieldNames["PublicPost"]["12"] = "public_level";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function seo()
  {
    return $this->_get_value("5");
  }
  function set_seo($value)
  {
    return $this->_set_value("5", $value);
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("6", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("6");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["PublicPost"]["6"]();
    $v->set_value($value);
    $this->_set_arr_value("6", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("6");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_tag_labels()
  {
    return $this->_get_value("6");
  }
  function create_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function hidden()
  {
    return $this->_get_value("9");
  }
  function set_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
  function photo($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("10");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("10");
  }
  function photos_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_photos()
  {
    return $this->_get_value("10");
  }
  function expire_timestamp()
  {
    return $this->_get_value("11");
  }
  function set_expire_timestamp($value)
  {
    return $this->_set_value("11", $value);
  }
  function public_level()
  {
    return $this->_get_value("12");
  }
  function set_public_level($value)
  {
    return $this->_set_value("12", $value);
  }
}
class Banner extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Banner"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Banner"]["1"] = "item_id";
    self::$fields["Banner"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Banner"]["2"] = "description";
    self::$fields["Banner"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["Banner"]["3"] = "photo_uri";
    self::$fields["Banner"]["4"] = "PBBool";
    $this->values["4"] = "";
    self::$fieldNames["Banner"]["4"] = "hidden";
    self::$fields["Banner"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["Banner"]["5"] = "create_timestamp";
    self::$fields["Banner"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["Banner"]["6"] = "update_timestamp";
    self::$fields["Banner"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["Banner"]["7"] = "expire_timestamp";
    self::$fields["Banner"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["Banner"]["8"] = "position_top";
    self::$fields["Banner"]["9"] = "PBInt";
    $this->values["9"] = "";
    self::$fieldNames["Banner"]["9"] = "position_left";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function description()
  {
    return $this->_get_value("2");
  }
  function set_description($value)
  {
    return $this->_set_value("2", $value);
  }
  function photo_uri()
  {
    return $this->_get_value("3");
  }
  function set_photo_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function hidden()
  {
    return $this->_get_value("4");
  }
  function set_hidden($value)
  {
    return $this->_set_value("4", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function expire_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_expire_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
  function position_top()
  {
    return $this->_get_value("8");
  }
  function set_position_top($value)
  {
    return $this->_set_value("8", $value);
  }
  function position_left()
  {
    return $this->_get_value("9");
  }
  function set_position_left($value)
  {
    return $this->_set_value("9", $value);
  }
}
class FAQItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FAQItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FAQItem"]["1"] = "item_id";
    self::$fields["FAQItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["FAQItem"]["3"] = "question";
    self::$fields["FAQItem"]["5"] = "PhotoItem";
    $this->values["5"] = array();
    self::$fieldNames["FAQItem"]["5"] = "answer_photo";
    self::$fields["FAQItem"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["FAQItem"]["6"] = "answer";
    self::$fields["FAQItem"]["7"] = "PBString";
    $this->values["7"] = array();
    self::$fieldNames["FAQItem"]["7"] = "topic_id";
    self::$fields["FAQItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["FAQItem"]["8"] = "create_timestamp";
    self::$fields["FAQItem"]["9"] = "PBInt";
    $this->values["9"] = "";
    self::$fieldNames["FAQItem"]["9"] = "update_timestamp";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function question()
  {
    return $this->_get_value("3");
  }
  function set_question($value)
  {
    return $this->_set_value("3", $value);
  }
  function answer_photo($offset)
  {
    return $this->_get_arr_value("5", $offset);
  }
  function add_answer_photo()
  {
    return $this->_add_arr_value("5");
  }
  function set_answer_photo($index, $value)
  {
    $this->_set_arr_value("5", $index, $value);
  }
  function set_all_answer_photos($values)
  {
    return $this->_set_arr_values("5", $values);
  }
  function remove_last_answer_photo()
  {
    $this->_remove_last_arr_value("5");
  }
  function answer_photos_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_answer_photos()
  {
    return $this->_get_value("5");
  }
  function answer()
  {
    return $this->_get_value("6");
  }
  function set_answer($value)
  {
    return $this->_set_value("6", $value);
  }
  function topic_id($offset)
  {
    $v = $this->_get_arr_value("7", $offset);
    return $v->get_value();
  }
  function append_topic_id($value)
  {
    $v = $this->_add_arr_value("7");
    $v->set_value($value);
  }
  function set_topic_id($index, $value)
  {
    $v = new self::$fields["FAQItem"]["7"]();
    $v->set_value($value);
    $this->_set_arr_value("7", $index, $v);
  }
  function remove_last_topic_id()
  {
    $this->_remove_last_arr_value("7");
  }
  function topic_ids_size()
  {
    return $this->_get_arr_size("7");
  }
  function get_topic_ids()
  {
    return $this->_get_value("7");
  }
  function create_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("9");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("9", $value);
  }
}
class FAQTopic extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FAQTopic"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FAQTopic"]["1"] = "item_id";
    self::$fields["FAQTopic"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["FAQTopic"]["2"] = "title";
    self::$fields["FAQTopic"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["FAQTopic"]["3"] = "thumb_picture_uri";
    self::$fields["FAQTopic"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["FAQTopic"]["4"] = "create_timestamp";
    self::$fields["FAQTopic"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["FAQTopic"]["5"] = "update_timestamp";
    self::$fields["FAQTopic"]["6"] = "FAQItem";
    $this->values["6"] = array();
    self::$fieldNames["FAQTopic"]["6"] = "faq";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function create_timestamp()
  {
    return $this->_get_value("4");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function faq($offset)
  {
    return $this->_get_arr_value("6", $offset);
  }
  function add_faq()
  {
    return $this->_add_arr_value("6");
  }
  function set_faq($index, $value)
  {
    $this->_set_arr_value("6", $index, $value);
  }
  function set_all_faqs($values)
  {
    return $this->_set_arr_values("6", $values);
  }
  function remove_last_faq()
  {
    $this->_remove_last_arr_value("6");
  }
  function faqs_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_faqs()
  {
    return $this->_get_value("6");
  }
}
class NewsItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NewsItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["NewsItem"]["1"] = "item_id";
    self::$fields["NewsItem"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NewsItem"]["2"] = "title";
    self::$fields["NewsItem"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["NewsItem"]["3"] = "thumb_picture_uri";
    self::$fields["NewsItem"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["NewsItem"]["4"] = "preview_description";
    self::$fields["NewsItem"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["NewsItem"]["5"] = "description";
    self::$fields["NewsItem"]["6"] = "PhotoItem";
    $this->values["6"] = array();
    self::$fieldNames["NewsItem"]["6"] = "photo";
    self::$fields["NewsItem"]["7"] = "PBString";
    $this->values["7"] = array();
    self::$fieldNames["NewsItem"]["7"] = "tag_label";
    self::$fields["NewsItem"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["NewsItem"]["8"] = "create_timestamp";
    self::$fields["NewsItem"]["9"] = "PBInt";
    $this->values["9"] = "";
    self::$fieldNames["NewsItem"]["9"] = "update_timestamp";
    self::$fields["NewsItem"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["NewsItem"]["10"] = "seo";
    self::$fields["NewsItem"]["11"] = "PBBool";
    $this->values["11"] = "";
    self::$fieldNames["NewsItem"]["11"] = "hidden";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function title()
  {
    return $this->_get_value("2");
  }
  function set_title($value)
  {
    return $this->_set_value("2", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("3");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function preview_description()
  {
    return $this->_get_value("4");
  }
  function set_preview_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function description()
  {
    return $this->_get_value("5");
  }
  function set_description($value)
  {
    return $this->_set_value("5", $value);
  }
  function photo($offset)
  {
    return $this->_get_arr_value("6", $offset);
  }
  function add_photo()
  {
    return $this->_add_arr_value("6");
  }
  function set_photo($index, $value)
  {
    $this->_set_arr_value("6", $index, $value);
  }
  function set_all_photos($values)
  {
    return $this->_set_arr_values("6", $values);
  }
  function remove_last_photo()
  {
    $this->_remove_last_arr_value("6");
  }
  function photos_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_photos()
  {
    return $this->_get_value("6");
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("7", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("7");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["NewsItem"]["7"]();
    $v->set_value($value);
    $this->_set_arr_value("7", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("7");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("7");
  }
  function get_tag_labels()
  {
    return $this->_get_value("7");
  }
  function create_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_create_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("9");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("9", $value);
  }
  function seo()
  {
    return $this->_get_value("10");
  }
  function set_seo($value)
  {
    return $this->_set_value("10", $value);
  }
  function hidden()
  {
    return $this->_get_value("11");
  }
  function set_hidden($value)
  {
    return $this->_set_value("11", $value);
  }
}
class GoldPrice extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["GoldPrice"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["GoldPrice"]["1"] = "item_id";
    self::$fields["GoldPrice"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["GoldPrice"]["2"] = "gold_type";
    self::$fields["GoldPrice"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["GoldPrice"]["3"] = "city";
    self::$fields["GoldPrice"]["4"] = "PB32Bit";
    $this->values["4"] = "";
    self::$fieldNames["GoldPrice"]["4"] = "buy_price";
    self::$fields["GoldPrice"]["5"] = "PB32Bit";
    $this->values["5"] = "";
    self::$fieldNames["GoldPrice"]["5"] = "sell_price";
    self::$fields["GoldPrice"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["GoldPrice"]["6"] = "update_timestamp";
    self::$fields["GoldPrice"]["7"] = "PB32Bit";
    $this->values["7"] = "";
    self::$fieldNames["GoldPrice"]["7"] = "last_buy_price";
    self::$fields["GoldPrice"]["8"] = "PB32Bit";
    $this->values["8"] = "";
    self::$fieldNames["GoldPrice"]["8"] = "last_sell_price";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function gold_type()
  {
    return $this->_get_value("2");
  }
  function set_gold_type($value)
  {
    return $this->_set_value("2", $value);
  }
  function city()
  {
    return $this->_get_value("3");
  }
  function set_city($value)
  {
    return $this->_set_value("3", $value);
  }
  function buy_price()
  {
    return $this->_get_value("4");
  }
  function set_buy_price($value)
  {
    return $this->_set_value("4", $value);
  }
  function sell_price()
  {
    return $this->_get_value("5");
  }
  function set_sell_price($value)
  {
    return $this->_set_value("5", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function last_buy_price()
  {
    return $this->_get_value("7");
  }
  function set_last_buy_price($value)
  {
    return $this->_set_value("7", $value);
  }
  function last_sell_price()
  {
    return $this->_get_value("8");
  }
  function set_last_sell_price($value)
  {
    return $this->_set_value("8", $value);
  }
}
class ForeignMoneyPrice extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ForeignMoneyPrice"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["1"] = "item_id";
    self::$fields["ForeignMoneyPrice"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["2"] = "money_code";
    self::$fields["ForeignMoneyPrice"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["3"] = "money_name";
    self::$fields["ForeignMoneyPrice"]["4"] = "PB32Bit";
    $this->values["4"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["4"] = "buy_price";
    self::$fields["ForeignMoneyPrice"]["5"] = "PB32Bit";
    $this->values["5"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["5"] = "transfer_price";
    self::$fields["ForeignMoneyPrice"]["6"] = "PB32Bit";
    $this->values["6"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["6"] = "sell_price";
    self::$fields["ForeignMoneyPrice"]["9"] = "PB32Bit";
    $this->values["9"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["9"] = "last_buy_price";
    self::$fields["ForeignMoneyPrice"]["10"] = "PB32Bit";
    $this->values["10"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["10"] = "last_transfer_price";
    self::$fields["ForeignMoneyPrice"]["11"] = "PB32Bit";
    $this->values["11"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["11"] = "last_sell_price";
    self::$fields["ForeignMoneyPrice"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ForeignMoneyPrice"]["7"] = "update_timestamp";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function money_code()
  {
    return $this->_get_value("2");
  }
  function set_money_code($value)
  {
    return $this->_set_value("2", $value);
  }
  function money_name()
  {
    return $this->_get_value("3");
  }
  function set_money_name($value)
  {
    return $this->_set_value("3", $value);
  }
  function buy_price()
  {
    return $this->_get_value("4");
  }
  function set_buy_price($value)
  {
    return $this->_set_value("4", $value);
  }
  function transfer_price()
  {
    return $this->_get_value("5");
  }
  function set_transfer_price($value)
  {
    return $this->_set_value("5", $value);
  }
  function sell_price()
  {
    return $this->_get_value("6");
  }
  function set_sell_price($value)
  {
    return $this->_set_value("6", $value);
  }
  function last_buy_price()
  {
    return $this->_get_value("9");
  }
  function set_last_buy_price($value)
  {
    return $this->_set_value("9", $value);
  }
  function last_transfer_price()
  {
    return $this->_get_value("10");
  }
  function set_last_transfer_price($value)
  {
    return $this->_set_value("10", $value);
  }
  function last_sell_price()
  {
    return $this->_get_value("11");
  }
  function set_last_sell_price($value)
  {
    return $this->_set_value("11", $value);
  }
  function update_timestamp()
  {
    return $this->_get_value("7");
  }
  function set_update_timestamp($value)
  {
    return $this->_set_value("7", $value);
  }
}
class UpdatePrice extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UpdatePrice"]["1"] = "ItemType";
    $this->values["1"] = "";
    self::$fieldNames["UpdatePrice"]["1"] = "item";
    self::$fields["UpdatePrice"]["2"] = "GoldPrice";
    $this->values["2"] = array();
    self::$fieldNames["UpdatePrice"]["2"] = "gold_price";
    self::$fields["UpdatePrice"]["3"] = "ForeignMoneyPrice";
    $this->values["3"] = array();
    self::$fieldNames["UpdatePrice"]["3"] = "foreign_price";
  }
  function item()
  {
    return $this->_get_value("1");
  }
  function set_item($value)
  {
    return $this->_set_value("1", $value);
  }
  function item_string()
  {
    return $this->values["1"]->get_description();
  }
  function gold_price($offset)
  {
    return $this->_get_arr_value("2", $offset);
  }
  function add_gold_price()
  {
    return $this->_add_arr_value("2");
  }
  function set_gold_price($index, $value)
  {
    $this->_set_arr_value("2", $index, $value);
  }
  function set_all_gold_prices($values)
  {
    return $this->_set_arr_values("2", $values);
  }
  function remove_last_gold_price()
  {
    $this->_remove_last_arr_value("2");
  }
  function gold_prices_size()
  {
    return $this->_get_arr_size("2");
  }
  function get_gold_prices()
  {
    return $this->_get_value("2");
  }
  function foreign_price($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_foreign_price()
  {
    return $this->_add_arr_value("3");
  }
  function set_foreign_price($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_foreign_prices($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_foreign_price()
  {
    $this->_remove_last_arr_value("3");
  }
  function foreign_prices_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_foreign_prices()
  {
    return $this->_get_value("3");
  }
}
class UserActivity extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserActivity"]["1"] = "UserActivityType";
    $this->values["1"] = "";
    self::$fieldNames["UserActivity"]["1"] = "activity_type";
    self::$fields["UserActivity"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["UserActivity"]["2"] = "timestamp";
    self::$fields["UserActivity"]["3"] = "ProfileLite";
    $this->values["3"] = "";
    self::$fieldNames["UserActivity"]["3"] = "activity_user";
    self::$fields["UserActivity"]["4"] = "ItemLite";
    $this->values["4"] = "";
    self::$fieldNames["UserActivity"]["4"] = "activity_content";
  }
  function activity_type()
  {
    return $this->_get_value("1");
  }
  function set_activity_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function activity_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function timestamp()
  {
    return $this->_get_value("2");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("2", $value);
  }
  function activity_user()
  {
    return $this->_get_value("3");
  }
  function set_activity_user($value)
  {
    return $this->_set_value("3", $value);
  }
  function activity_content()
  {
    return $this->_get_value("4");
  }
  function set_activity_content($value)
  {
    return $this->_set_value("4", $value);
  }
}
class SocialChannelType extends PBEnum
{
  const FACEBOOK  = 1;
  const GOOGLE  = 2;
  const ZINGME  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "FACEBOOK",
			2 => "GOOGLE",
			3 => "ZINGME");
   }
}
class SocialChannelShare extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SocialChannelShare"]["1"] = "SocialChannelType";
    $this->values["1"] = "";
    self::$fieldNames["SocialChannelShare"]["1"] = "channel_type";
    self::$fields["SocialChannelShare"]["2"] = "PBBytes";
    $this->values["2"] = "";
    self::$fieldNames["SocialChannelShare"]["2"] = "channel_share_info";
  }
  function channel_type()
  {
    return $this->_get_value("1");
  }
  function set_channel_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function channel_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function channel_share_info()
  {
    return $this->_get_value("2");
  }
  function set_channel_share_info($value)
  {
    return $this->_set_value("2", $value);
  }
}
class FacebookShare extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FacebookShare"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FacebookShare"]["1"] = "facebook_id";
    self::$fields["FacebookShare"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["FacebookShare"]["2"] = "access_token";
    self::$fields["FacebookShare"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["FacebookShare"]["3"] = "post_id";
  }
  function facebook_id()
  {
    return $this->_get_value("1");
  }
  function set_facebook_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function access_token()
  {
    return $this->_get_value("2");
  }
  function set_access_token($value)
  {
    return $this->_set_value("2", $value);
  }
  function post_id()
  {
    return $this->_get_value("3");
  }
  function set_post_id($value)
  {
    return $this->_set_value("3", $value);
  }
}
class CountBy extends PBEnum
{
  const TIME  = 0;
  const TIME_DURATION  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "TIME",
			1 => "TIME_DURATION");
   }
}
class SubscriptionActionType extends PBEnum
{
  const USER_FOLLOW_USER  = 0;
  const SUBSCRIBE_CONTENT  = 1;
  const RECEIVE_SMS  = 2;
  const MONITOR_CHART  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "USER_FOLLOW_USER",
			1 => "SUBSCRIBE_CONTENT",
			2 => "RECEIVE_SMS",
			3 => "MONITOR_CHART");
   }
}
class SubscriptionUnit extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SubscriptionUnit"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["SubscriptionUnit"]["1"] = "unit_id";
    self::$fields["SubscriptionUnit"]["2"] = "ItemType";
    $this->values["2"] = "";
    self::$fieldNames["SubscriptionUnit"]["2"] = "item_type";
    self::$fields["SubscriptionUnit"]["3"] = "SubscriptionActionType";
    $this->values["3"] = "";
    self::$fieldNames["SubscriptionUnit"]["3"] = "action_type";
    self::$fields["SubscriptionUnit"]["4"] = "PB32Bit";
    $this->values["4"] = "";
    self::$fieldNames["SubscriptionUnit"]["4"] = "price_unit";
    self::$fields["SubscriptionUnit"]["5"] = "CountBy";
    $this->values["5"] = "";
    self::$fieldNames["SubscriptionUnit"]["5"] = "count_by";
    self::$fields["SubscriptionUnit"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["SubscriptionUnit"]["6"] = "times";
    self::$fields["SubscriptionUnit"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["SubscriptionUnit"]["7"] = "time_duration";
  }
  function unit_id()
  {
    return $this->_get_value("1");
  }
  function set_unit_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function item_type()
  {
    return $this->_get_value("2");
  }
  function set_item_type($value)
  {
    return $this->_set_value("2", $value);
  }
  function item_type_string()
  {
    return $this->values["2"]->get_description();
  }
  function action_type()
  {
    return $this->_get_value("3");
  }
  function set_action_type($value)
  {
    return $this->_set_value("3", $value);
  }
  function action_type_string()
  {
    return $this->values["3"]->get_description();
  }
  function price_unit()
  {
    return $this->_get_value("4");
  }
  function set_price_unit($value)
  {
    return $this->_set_value("4", $value);
  }
  function count_by()
  {
    return $this->_get_value("5");
  }
  function set_count_by($value)
  {
    return $this->_set_value("5", $value);
  }
  function count_by_string()
  {
    return $this->values["5"]->get_description();
  }
  function times()
  {
    return $this->_get_value("6");
  }
  function set_times($value)
  {
    return $this->_set_value("6", $value);
  }
  function time_duration()
  {
    return $this->_get_value("7");
  }
  function set_time_duration($value)
  {
    return $this->_set_value("7", $value);
  }
}
class SubscriptionPackage extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SubscriptionPackage"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["SubscriptionPackage"]["1"] = "package_id";
    self::$fields["SubscriptionPackage"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["SubscriptionPackage"]["2"] = "package_name";
    self::$fields["SubscriptionPackage"]["3"] = "PB32Bit";
    $this->values["3"] = "";
    self::$fieldNames["SubscriptionPackage"]["3"] = "package_price";
    self::$fields["SubscriptionPackage"]["4"] = "SubscriptionUnit";
    $this->values["4"] = array();
    self::$fieldNames["SubscriptionPackage"]["4"] = "units";
    self::$fields["SubscriptionPackage"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["SubscriptionPackage"]["5"] = "expires_in";
    self::$fields["SubscriptionPackage"]["6"] = "PB32Bit";
    $this->values["6"] = "";
    self::$fieldNames["SubscriptionPackage"]["6"] = "discount";
  }
  function package_id()
  {
    return $this->_get_value("1");
  }
  function set_package_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function package_name()
  {
    return $this->_get_value("2");
  }
  function set_package_name($value)
  {
    return $this->_set_value("2", $value);
  }
  function package_price()
  {
    return $this->_get_value("3");
  }
  function set_package_price($value)
  {
    return $this->_set_value("3", $value);
  }
  function units($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_units()
  {
    return $this->_add_arr_value("4");
  }
  function set_units($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_unitss($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_units()
  {
    $this->_remove_last_arr_value("4");
  }
  function unitss_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_unitss()
  {
    return $this->_get_value("4");
  }
  function expires_in()
  {
    return $this->_get_value("5");
  }
  function set_expires_in($value)
  {
    return $this->_set_value("5", $value);
  }
  function discount()
  {
    return $this->_get_value("6");
  }
  function set_discount($value)
  {
    return $this->_set_value("6", $value);
  }
}
class MoneyUnit extends PBEnum
{
  const VND  = 0;
  const ACX_COIN  = 1;
  const LUCKY_NUMBER_COIN  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "VND",
			1 => "ACX_COIN",
			2 => "LUCKY_NUMBER_COIN");
   }
}
class MoneyConversion extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MoneyConversion"]["1"] = "MoneyUnit";
    $this->values["1"] = "";
    self::$fieldNames["MoneyConversion"]["1"] = "moneyA";
    self::$fields["MoneyConversion"]["2"] = "MoneyUnit";
    $this->values["2"] = "";
    self::$fieldNames["MoneyConversion"]["2"] = "moneyB";
    self::$fields["MoneyConversion"]["3"] = "PB32Bit";
    $this->values["3"] = "";
    self::$fieldNames["MoneyConversion"]["3"] = "rate";
  }
  function moneyA()
  {
    return $this->_get_value("1");
  }
  function set_moneyA($value)
  {
    return $this->_set_value("1", $value);
  }
  function moneyA_string()
  {
    return $this->values["1"]->get_description();
  }
  function moneyB()
  {
    return $this->_get_value("2");
  }
  function set_moneyB($value)
  {
    return $this->_set_value("2", $value);
  }
  function moneyB_string()
  {
    return $this->values["2"]->get_description();
  }
  function rate()
  {
    return $this->_get_value("3");
  }
  function set_rate($value)
  {
    return $this->_set_value("3", $value);
  }
}
class RemainingItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RemainingItem"]["1"] = "ItemType";
    $this->values["1"] = "";
    self::$fieldNames["RemainingItem"]["1"] = "item_type";
    self::$fields["RemainingItem"]["2"] = "CountBy";
    $this->values["2"] = "";
    self::$fieldNames["RemainingItem"]["2"] = "count_by";
    self::$fields["RemainingItem"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["RemainingItem"]["3"] = "times";
    self::$fields["RemainingItem"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["RemainingItem"]["4"] = "time_duration";
  }
  function item_type()
  {
    return $this->_get_value("1");
  }
  function set_item_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function item_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function count_by()
  {
    return $this->_get_value("2");
  }
  function set_count_by($value)
  {
    return $this->_set_value("2", $value);
  }
  function count_by_string()
  {
    return $this->values["2"]->get_description();
  }
  function times()
  {
    return $this->_get_value("3");
  }
  function set_times($value)
  {
    return $this->_set_value("3", $value);
  }
  function time_duration()
  {
    return $this->_get_value("4");
  }
  function set_time_duration($value)
  {
    return $this->_set_value("4", $value);
  }
}
class RemainingAction extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RemainingAction"]["1"] = "User2UserActionType";
    $this->values["1"] = "";
    self::$fieldNames["RemainingAction"]["1"] = "action_type";
    self::$fields["RemainingAction"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["RemainingAction"]["2"] = "num_available";
  }
  function action_type()
  {
    return $this->_get_value("1");
  }
  function set_action_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function action_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function num_available()
  {
    return $this->_get_value("2");
  }
  function set_num_available($value)
  {
    return $this->_set_value("2", $value);
  }
}
class UserServiceTicket_TicketType extends PBEnum
{
  const FREE  = 0;
  const PREPAID  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "FREE",
			1 => "PREPAID");
   }
}
class UserServiceTicket_TicketStatus extends PBEnum
{
  const EXPIRED  = 0;
  const ALIVE  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "EXPIRED",
			1 => "ALIVE");
   }
}
class UserServiceTicket extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserServiceTicket"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["UserServiceTicket"]["1"] = "uid";
    self::$fields["UserServiceTicket"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserServiceTicket"]["2"] = "ticket_id";
    self::$fields["UserServiceTicket"]["3"] = "UserServiceTicket_TicketStatus";
    $this->values["3"] = "";
    self::$fieldNames["UserServiceTicket"]["3"] = "status";
    self::$fields["UserServiceTicket"]["4"] = "PB32Bit";
    $this->values["4"] = "";
    self::$fieldNames["UserServiceTicket"]["4"] = "amount";
    self::$fields["UserServiceTicket"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["UserServiceTicket"]["5"] = "expire_timestamp";
    self::$fields["UserServiceTicket"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["UserServiceTicket"]["6"] = "subscription_package_id";
    self::$fields["UserServiceTicket"]["7"] = "RemainingItem";
    $this->values["7"] = array();
    self::$fieldNames["UserServiceTicket"]["7"] = "remaining_items";
    self::$fields["UserServiceTicket"]["8"] = "RemainingAction";
    $this->values["8"] = array();
    self::$fieldNames["UserServiceTicket"]["8"] = "remaining_actions";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function ticket_id()
  {
    return $this->_get_value("2");
  }
  function set_ticket_id($value)
  {
    return $this->_set_value("2", $value);
  }
  function status()
  {
    return $this->_get_value("3");
  }
  function set_status($value)
  {
    return $this->_set_value("3", $value);
  }
  function status_string()
  {
    return $this->values["3"]->get_description();
  }
  function amount()
  {
    return $this->_get_value("4");
  }
  function set_amount($value)
  {
    return $this->_set_value("4", $value);
  }
  function expire_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_expire_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function subscription_package_id()
  {
    return $this->_get_value("6");
  }
  function set_subscription_package_id($value)
  {
    return $this->_set_value("6", $value);
  }
  function remaining_items($offset)
  {
    return $this->_get_arr_value("7", $offset);
  }
  function add_remaining_items()
  {
    return $this->_add_arr_value("7");
  }
  function set_remaining_items($index, $value)
  {
    $this->_set_arr_value("7", $index, $value);
  }
  function set_all_remaining_itemss($values)
  {
    return $this->_set_arr_values("7", $values);
  }
  function remove_last_remaining_items()
  {
    $this->_remove_last_arr_value("7");
  }
  function remaining_itemss_size()
  {
    return $this->_get_arr_size("7");
  }
  function get_remaining_itemss()
  {
    return $this->_get_value("7");
  }
  function remaining_actions($offset)
  {
    return $this->_get_arr_value("8", $offset);
  }
  function add_remaining_actions()
  {
    return $this->_add_arr_value("8");
  }
  function set_remaining_actions($index, $value)
  {
    $this->_set_arr_value("8", $index, $value);
  }
  function set_all_remaining_actionss($values)
  {
    return $this->_set_arr_values("8", $values);
  }
  function remove_last_remaining_actions()
  {
    $this->_remove_last_arr_value("8");
  }
  function remaining_actionss_size()
  {
    return $this->_get_arr_size("8");
  }
  function get_remaining_actionss()
  {
    return $this->_get_value("8");
  }
}
class ContentUpdate extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentUpdate"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentUpdate"]["1"] = "content_id";
    self::$fields["ContentUpdate"]["2"] = "User2ContentActionType";
    $this->values["2"] = "";
    self::$fieldNames["ContentUpdate"]["2"] = "action";
    self::$fields["ContentUpdate"]["4"] = "TextMessage";
    $this->values["4"] = "";
    self::$fieldNames["ContentUpdate"]["4"] = "msg";
    self::$fields["ContentUpdate"]["3"] = "ProfileLite";
    $this->values["3"] = "";
    self::$fieldNames["ContentUpdate"]["3"] = "actor";
    self::$fields["ContentUpdate"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ContentUpdate"]["5"] = "timestamp";
  }
  function content_id()
  {
    return $this->_get_value("1");
  }
  function set_content_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function action()
  {
    return $this->_get_value("2");
  }
  function set_action($value)
  {
    return $this->_set_value("2", $value);
  }
  function action_string()
  {
    return $this->values["2"]->get_description();
  }
  function msg()
  {
    return $this->_get_value("4");
  }
  function set_msg($value)
  {
    return $this->_set_value("4", $value);
  }
  function actor()
  {
    return $this->_get_value("3");
  }
  function set_actor($value)
  {
    return $this->_set_value("3", $value);
  }
  function timestamp()
  {
    return $this->_get_value("5");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
}
class UserUpdate extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserUpdate"]["1"] = "User2UserActionType";
    $this->values["1"] = "";
    self::$fieldNames["UserUpdate"]["1"] = "action";
    self::$fields["UserUpdate"]["2"] = "ProfileLite";
    $this->values["2"] = "";
    self::$fieldNames["UserUpdate"]["2"] = "actor";
    self::$fields["UserUpdate"]["3"] = "ProfileLite";
    $this->values["3"] = "";
    self::$fieldNames["UserUpdate"]["3"] = "victim";
    self::$fields["UserUpdate"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["UserUpdate"]["4"] = "timestamp";
  }
  function action()
  {
    return $this->_get_value("1");
  }
  function set_action($value)
  {
    return $this->_set_value("1", $value);
  }
  function action_string()
  {
    return $this->values["1"]->get_description();
  }
  function actor()
  {
    return $this->_get_value("2");
  }
  function set_actor($value)
  {
    return $this->_set_value("2", $value);
  }
  function victim()
  {
    return $this->_get_value("3");
  }
  function set_victim($value)
  {
    return $this->_set_value("3", $value);
  }
  function timestamp()
  {
    return $this->_get_value("4");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
}
class QueueMsg extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["QueueMsg"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["QueueMsg"]["1"] = "topic";
    self::$fields["QueueMsg"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["QueueMsg"]["5"] = "sub_topic";
    self::$fields["QueueMsg"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["QueueMsg"]["4"] = "uid";
    self::$fields["QueueMsg"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["QueueMsg"]["3"] = "msg";
    self::$fields["QueueMsg"]["6"] = "ContentUpdate";
    $this->values["6"] = "";
    self::$fieldNames["QueueMsg"]["6"] = "content_update";
    self::$fields["QueueMsg"]["7"] = "UserUpdate";
    $this->values["7"] = "";
    self::$fieldNames["QueueMsg"]["7"] = "user_update";
    self::$fields["QueueMsg"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["QueueMsg"]["8"] = "channel";
    self::$fields["QueueMsg"]["9"] = "GameAction";
    $this->values["9"] = "";
    self::$fieldNames["QueueMsg"]["9"] = "game_action";
  }
  function topic()
  {
    return $this->_get_value("1");
  }
  function set_topic($value)
  {
    return $this->_set_value("1", $value);
  }
  function sub_topic()
  {
    return $this->_get_value("5");
  }
  function set_sub_topic($value)
  {
    return $this->_set_value("5", $value);
  }
  function uid()
  {
    return $this->_get_value("4");
  }
  function set_uid($value)
  {
    return $this->_set_value("4", $value);
  }
  function msg()
  {
    return $this->_get_value("3");
  }
  function set_msg($value)
  {
    return $this->_set_value("3", $value);
  }
  function content_update()
  {
    return $this->_get_value("6");
  }
  function set_content_update($value)
  {
    return $this->_set_value("6", $value);
  }
  function user_update()
  {
    return $this->_get_value("7");
  }
  function set_user_update($value)
  {
    return $this->_set_value("7", $value);
  }
  function channel()
  {
    return $this->_get_value("8");
  }
  function set_channel($value)
  {
    return $this->_set_value("8", $value);
  }
  function game_action()
  {
    return $this->_get_value("9");
  }
  function set_game_action($value)
  {
    return $this->_set_value("9", $value);
  }
  function game_action_string()
  {
    return $this->values["9"]->get_description();
  }
}
class InviteJoin extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["InviteJoin"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["InviteJoin"]["1"] = "uid";
    self::$fields["InviteJoin"]["2"] = "PBString";
    $this->values["2"] = array();
    self::$fieldNames["InviteJoin"]["2"] = "request_id";
    self::$fields["InviteJoin"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["InviteJoin"]["3"] = "inviter_username";
    self::$fields["InviteJoin"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["InviteJoin"]["4"] = "timestamp";
    self::$fields["InviteJoin"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["InviteJoin"]["5"] = "url";
    self::$fields["InviteJoin"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["InviteJoin"]["6"] = "channel";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function request_id($offset)
  {
    $v = $this->_get_arr_value("2", $offset);
    return $v->get_value();
  }
  function append_request_id($value)
  {
    $v = $this->_add_arr_value("2");
    $v->set_value($value);
  }
  function set_request_id($index, $value)
  {
    $v = new self::$fields["InviteJoin"]["2"]();
    $v->set_value($value);
    $this->_set_arr_value("2", $index, $v);
  }
  function remove_last_request_id()
  {
    $this->_remove_last_arr_value("2");
  }
  function request_ids_size()
  {
    return $this->_get_arr_size("2");
  }
  function get_request_ids()
  {
    return $this->_get_value("2");
  }
  function inviter_username()
  {
    return $this->_get_value("3");
  }
  function set_inviter_username($value)
  {
    return $this->_set_value("3", $value);
  }
  function timestamp()
  {
    return $this->_get_value("4");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function url()
  {
    return $this->_get_value("5");
  }
  function set_url($value)
  {
    return $this->_set_value("5", $value);
  }
  function channel()
  {
    return $this->_get_value("6");
  }
  function set_channel($value)
  {
    return $this->_set_value("6", $value);
  }
}
class StreamAndNotificationQueueMsg_Type extends PBEnum
{
  const STREAM  = 0;
  const STREAM4SUBSCRIBERS  = 1;
  const STREAM_MYSELF  = 2;
  const NOTIFICATION  = 3;
  const DEL_NOTIFICATION  = 4;
  const NOTIFICATION4SUBSCRIBERS  = 5;
  const NOTIFY_USER  = 6;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "STREAM",
			1 => "STREAM4SUBSCRIBERS",
			2 => "STREAM_MYSELF",
			3 => "NOTIFICATION",
			4 => "DEL_NOTIFICATION",
			5 => "NOTIFICATION4SUBSCRIBERS",
			6 => "NOTIFY_USER");
   }
}
class StreamAndNotificationQueueMsg extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["StreamAndNotificationQueueMsg"]["6"] = "StreamAndNotificationQueueMsg_Type";
    $this->values["6"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["6"] = "type";
    self::$fields["StreamAndNotificationQueueMsg"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["1"] = "uid";
    self::$fields["StreamAndNotificationQueueMsg"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["2"] = "target_content_id";
    self::$fields["StreamAndNotificationQueueMsg"]["9"] = "PBString";
    $this->values["9"] = array();
    self::$fieldNames["StreamAndNotificationQueueMsg"]["9"] = "target_uid";
    self::$fields["StreamAndNotificationQueueMsg"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["3"] = "supscription_content_id";
    self::$fields["StreamAndNotificationQueueMsg"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["4"] = "timestamp";
    self::$fields["StreamAndNotificationQueueMsg"]["5"] = "User2ContentActionType";
    $this->values["5"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["5"] = "user2content";
    self::$fields["StreamAndNotificationQueueMsg"]["8"] = "User2UserActionType";
    $this->values["8"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["8"] = "user2user";
    self::$fields["StreamAndNotificationQueueMsg"]["7"] = "TextMessage";
    $this->values["7"] = "";
    self::$fieldNames["StreamAndNotificationQueueMsg"]["7"] = "action_msg";
  }
  function type()
  {
    return $this->_get_value("6");
  }
  function set_type($value)
  {
    return $this->_set_value("6", $value);
  }
  function type_string()
  {
    return $this->values["6"]->get_description();
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function target_content_id()
  {
    return $this->_get_value("2");
  }
  function set_target_content_id($value)
  {
    return $this->_set_value("2", $value);
  }
  function target_uid($offset)
  {
    $v = $this->_get_arr_value("9", $offset);
    return $v->get_value();
  }
  function append_target_uid($value)
  {
    $v = $this->_add_arr_value("9");
    $v->set_value($value);
  }
  function set_target_uid($index, $value)
  {
    $v = new self::$fields["StreamAndNotificationQueueMsg"]["9"]();
    $v->set_value($value);
    $this->_set_arr_value("9", $index, $v);
  }
  function remove_last_target_uid()
  {
    $this->_remove_last_arr_value("9");
  }
  function target_uids_size()
  {
    return $this->_get_arr_size("9");
  }
  function get_target_uids()
  {
    return $this->_get_value("9");
  }
  function supscription_content_id()
  {
    return $this->_get_value("3");
  }
  function set_supscription_content_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function timestamp()
  {
    return $this->_get_value("4");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function user2content()
  {
    return $this->_get_value("5");
  }
  function set_user2content($value)
  {
    return $this->_set_value("5", $value);
  }
  function user2content_string()
  {
    return $this->values["5"]->get_description();
  }
  function user2user()
  {
    return $this->_get_value("8");
  }
  function set_user2user($value)
  {
    return $this->_set_value("8", $value);
  }
  function user2user_string()
  {
    return $this->values["8"]->get_description();
  }
  function action_msg()
  {
    return $this->_get_value("7");
  }
  function set_action_msg($value)
  {
    return $this->_set_value("7", $value);
  }
}
class FacebookGetProfilePic extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FacebookGetProfilePic"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FacebookGetProfilePic"]["1"] = "uid";
    self::$fields["FacebookGetProfilePic"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["FacebookGetProfilePic"]["2"] = "sessionkey";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function sessionkey()
  {
    return $this->_get_value("2");
  }
  function set_sessionkey($value)
  {
    return $this->_set_value("2", $value);
  }
}
class NoticeAfteRegistration extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NoticeAfteRegistration"]["1"] = "ProfileLite";
    $this->values["1"] = "";
    self::$fieldNames["NoticeAfteRegistration"]["1"] = "user_profile";
    self::$fields["NoticeAfteRegistration"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NoticeAfteRegistration"]["2"] = "access_token";
    self::$fields["NoticeAfteRegistration"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["NoticeAfteRegistration"]["3"] = "facebookID";
  }
  function user_profile()
  {
    return $this->_get_value("1");
  }
  function set_user_profile($value)
  {
    return $this->_set_value("1", $value);
  }
  function access_token()
  {
    return $this->_get_value("2");
  }
  function set_access_token($value)
  {
    return $this->_set_value("2", $value);
  }
  function facebookID()
  {
    return $this->_get_value("3");
  }
  function set_facebookID($value)
  {
    return $this->_set_value("3", $value);
  }
}
class WinnerGame extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["WinnerGame"]["1"] = "MiniGameType";
    $this->values["1"] = "";
    self::$fieldNames["WinnerGame"]["1"] = "minigame_type";
    self::$fields["WinnerGame"]["2"] = "ProfileLite";
    $this->values["2"] = "";
    self::$fieldNames["WinnerGame"]["2"] = "profile";
    self::$fields["WinnerGame"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["WinnerGame"]["3"] = "number";
    self::$fields["WinnerGame"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["WinnerGame"]["4"] = "timestamp";
  }
  function minigame_type()
  {
    return $this->_get_value("1");
  }
  function set_minigame_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function minigame_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function profile()
  {
    return $this->_get_value("2");
  }
  function set_profile($value)
  {
    return $this->_set_value("2", $value);
  }
  function number()
  {
    return $this->_get_value("3");
  }
  function set_number($value)
  {
    return $this->_set_value("3", $value);
  }
  function timestamp()
  {
    return $this->_get_value("4");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
}
class FacebookQueueMsg_Type extends PBEnum
{
  const GET_PROFILE_PIC  = 0;
  const NOTICE_AFTER_REGISTRATION  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "GET_PROFILE_PIC",
			1 => "NOTICE_AFTER_REGISTRATION");
   }
}
class FacebookQueueMsg extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FacebookQueueMsg"]["1"] = "FacebookQueueMsg_Type";
    $this->values["1"] = "";
    self::$fieldNames["FacebookQueueMsg"]["1"] = "type";
    self::$fields["FacebookQueueMsg"]["2"] = "PBBytes";
    $this->values["2"] = "";
    self::$fieldNames["FacebookQueueMsg"]["2"] = "details";
  }
  function type()
  {
    return $this->_get_value("1");
  }
  function set_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function type_string()
  {
    return $this->values["1"]->get_description();
  }
  function details()
  {
    return $this->_get_value("2");
  }
  function set_details($value)
  {
    return $this->_set_value("2", $value);
  }
}
class TopInvite extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TopInvite"]["1"] = "ProfileLite";
    $this->values["1"] = "";
    self::$fieldNames["TopInvite"]["1"] = "profile";
    self::$fields["TopInvite"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["TopInvite"]["2"] = "number";
  }
  function profile()
  {
    return $this->_get_value("1");
  }
  function set_profile($value)
  {
    return $this->_set_value("1", $value);
  }
  function number()
  {
    return $this->_get_value("2");
  }
  function set_number($value)
  {
    return $this->_set_value("2", $value);
  }
}
class ItemResult extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemResult"]["1"] = "ItemLite";
    $this->values["1"] = "";
    self::$fieldNames["ItemResult"]["1"] = "item";
    self::$fields["ItemResult"]["2"] = "ItemLite";
    $this->values["2"] = "";
    self::$fieldNames["ItemResult"]["2"] = "main_item";
  }
  function item()
  {
    return $this->_get_value("1");
  }
  function set_item($value)
  {
    return $this->_set_value("1", $value);
  }
  function main_item()
  {
    return $this->_get_value("2");
  }
  function set_main_item($value)
  {
    return $this->_set_value("2", $value);
  }
}
?>